Wrap errors in panic handler

This commit is contained in:
DarthSim
2025-08-20 20:24:49 +03:00
parent 7f0bcdb788
commit 9ffc9716d4

View File

@@ -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)