mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 03:12:14 +01:00
typo in timeout tests + adding tests for standarderror
This commit is contained in:
@@ -64,6 +64,8 @@ func Code(err error) string {
|
||||
return Internal
|
||||
}
|
||||
|
||||
const defaultMessage = "an internal error has occurred: please contact technical support"
|
||||
|
||||
// Message returns the human-readable message of the error, if available.
|
||||
// Otherwise returns a generic error message.
|
||||
func Message(err error) string {
|
||||
@@ -77,7 +79,7 @@ func Message(err error) string {
|
||||
if ok && e.Err != nil {
|
||||
return Message(e.Err)
|
||||
}
|
||||
return "An internal error has occurred. Please contact technical support."
|
||||
return defaultMessage
|
||||
}
|
||||
|
||||
// Op returns the logical operation of the error, if available.
|
||||
|
||||
Reference in New Issue
Block a user