Skip to content

Commit

Permalink
logs the internal error message instead of returning it (labstack#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Serban authored and vishr committed Aug 2, 2018
1 parent 76d8adb commit 2017e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
code = he.Code
msg = he.Message
if he.Internal != nil {
msg = fmt.Sprintf("%v, %v", err, he.Internal)
err = fmt.Errorf("%v, %v", err, he.Internal)
}
} else if e.Debug {
msg = err.Error()
Expand Down

0 comments on commit 2017e5e

Please sign in to comment.