mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 05:02:15 +01:00
tests for process package
This commit is contained in:
@@ -27,8 +27,10 @@ type conversionData struct {
|
||||
|
||||
type impossibleConversionError struct{}
|
||||
|
||||
const impossibleConversionErrorMessage = "Impossible conversion"
|
||||
|
||||
func (e *impossibleConversionError) Error() string {
|
||||
return "Impossible conversion"
|
||||
return impossibleConversionErrorMessage
|
||||
}
|
||||
|
||||
// Unconv converts a file to PDF and returns the new file path.
|
||||
@@ -100,8 +102,10 @@ func Merge(workingDir string, filesPaths []string) (string, error) {
|
||||
|
||||
type commandTimeoutError struct{}
|
||||
|
||||
const commandTimeoutErrorMessage = "The command has reached timeout"
|
||||
|
||||
func (e *commandTimeoutError) Error() string {
|
||||
return "The command has reached timeout"
|
||||
return commandTimeoutErrorMessage
|
||||
}
|
||||
|
||||
// run runs the given command. If timeout is reached or
|
||||
|
||||
Reference in New Issue
Block a user