worker: Treat a non echo.HTTPError like a regular error
This commit is contained in:
parent
30f64d190d
commit
8406ada6f5
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ func HTTPErrorHandler(echoError error, c echo.Context) {
|
|||
|
||||
he, ok := echoError.(*echo.HTTPError)
|
||||
if !ok {
|
||||
doResponse(ErrorNotHTTPError, c, he.Internal)
|
||||
doResponse(ErrorNotHTTPError, c, echoError)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue