Closed itivanov closed 1 month ago
I have the same issue.
slog-fiber Retrieve errHandler = c.App().ErrorHandler
https://github.com/samber/slog-fiber/blob/bf0203e01f2a1a306a56495794cee3b28c2ef2c8/middleware.go#L110-L119
after error handler execue, it should override the original err https://github.com/samber/slog-fiber/blob/bf0203e01f2a1a306a56495794cee3b28c2ef2c8/middleware.go#L134-L139
FIX:
(X) if err := errHandler(c, err); err != nil {
(O) if err = errHandler(c, err); err != nil {
@KScaesar i just made a fix in 1.16.3. Can you test it please ?
@KScaesar i just made a fix in 1.16.3. Can you test it please ?
nice fix!
The error handling in version 1.16.3 will only occur once.
With this setup error handler is called twice
...