Skip to content

Commit

Permalink
optimize: add more detail error message in serverErrorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed Dec 10, 2022
1 parent affa759 commit 29b8b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Expand Up @@ -1031,7 +1031,7 @@ func (app *App) serverErrorHandler(fctx *fasthttp.RequestCtx, err error) {
} else if strings.Contains(err.Error(), "timeout") {
err = ErrRequestTimeout
} else {
err = ErrBadRequest
err = NewError(StatusBadRequest, err.Error())
}

if catch := app.ErrorHandler(c, err); catch != nil {
Expand Down

0 comments on commit 29b8b37

Please sign in to comment.