mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 04:02:29 +02:00
Better stacktrace of processing errorf
This commit is contained in:
@@ -240,7 +240,7 @@ func (h *httpHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
|
||||
if ierr, ok := err.(*imgproxyError); ok {
|
||||
respondWithError(reqID, rw, ierr)
|
||||
} else {
|
||||
respondWithError(reqID, rw, newUnexpectedError(err, 4))
|
||||
respondWithError(reqID, rw, newUnexpectedError(err.Error(), 3))
|
||||
}
|
||||
} else {
|
||||
panic(rerr)
|
||||
|
Reference in New Issue
Block a user