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