mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Add category to downloading error
This commit is contained in:
@@ -389,7 +389,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) err
|
||||
return ierrors.Wrap(terr, 0, ierrors.WithCategory(categoryTimeout))
|
||||
}
|
||||
|
||||
ierr := ierrors.Wrap(err, 0)
|
||||
ierr := ierrors.Wrap(err, 0, ierrors.WithCategory(categoryDownload))
|
||||
if config.ReportDownloadingErrors {
|
||||
ierr = ierrors.Wrap(ierr, 0, ierrors.WithShouldReport(true))
|
||||
}
|
||||
|
Reference in New Issue
Block a user