Better stacktrace of processing errorf

This commit is contained in:
DarthSim
2019-05-08 20:37:26 +06:00
parent 3d13e6afb2
commit 023dcadc34
3 changed files with 9 additions and 6 deletions

View File

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