worker: Treat a non echo.HTTPError like a regular error

This commit is contained in:
sanne 2021-12-17 12:46:30 +01:00 committed by Sanne Raymaekers
parent 30f64d190d
commit 8406ada6f5

View file

@ -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
}