Skip to content

Commit a9691e5

Browse files
cxlblmaldas
authored andcommitted
Fix error logging in custom HTTP error handler
1 parent 60e4b3b commit a9691e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/guide/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func customHTTPErrorHandler(c *echo.Context, err error) {
108108
cErr = c.File(errorPage)
109109
}
110110
if cErr != nil {
111-
c.Logger().Error("failed to send error page to client", "error", errors.Join(err, fErr))
111+
c.Logger().Error("failed to send error page to client", "error", errors.Join(err, cErr))
112112
}
113113
}
114114

0 commit comments

Comments
 (0)