mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
5
echo.go
5
echo.go
@ -332,6 +332,9 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
|
|||||||
msg = Map{"message": msg}
|
msg = Map{"message": msg}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.Logger.Error(err)
|
||||||
|
|
||||||
|
// Send response
|
||||||
if !c.Response().Committed {
|
if !c.Response().Committed {
|
||||||
if c.Request().Method == HEAD { // Issue #608
|
if c.Request().Method == HEAD { // Issue #608
|
||||||
err = c.NoContent(code)
|
err = c.NoContent(code)
|
||||||
@ -342,8 +345,6 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
|
|||||||
e.Logger.Error(err)
|
e.Logger.Error(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e.Logger.Error(err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pre adds middleware to the chain which is run before router.
|
// Pre adds middleware to the chain which is run before router.
|
||||||
|
Reference in New Issue
Block a user