mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Wrap errors in panic handler
This commit is contained in:
@@ -84,7 +84,7 @@ func (r *Router) WithPanic(h RouteHandler) RouteHandler {
|
||||
err = fmt.Errorf("panic: %v", err)
|
||||
}
|
||||
|
||||
retErr = err
|
||||
retErr = ierrors.Wrap(err, 1)
|
||||
}()
|
||||
|
||||
return h(reqID, rw, r)
|
||||
|
Reference in New Issue
Block a user