mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Wrap asyncbuffer and imageDataAsyncBuffer errors
This commit is contained in:
committed by
Sergei Aleksandrovich
parent
4706416d5b
commit
d38720a0b8
@@ -462,8 +462,8 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) err
|
||||
}
|
||||
|
||||
// First, check if the processing error wasn't caused by an image data error
|
||||
if originData.Error() != nil {
|
||||
return ierrors.Wrap(originData.Error(), 0, ierrors.WithCategory(categoryDownload))
|
||||
if derr := originData.Error(); derr != nil {
|
||||
return ierrors.Wrap(derr, 0, ierrors.WithCategory(categoryDownload))
|
||||
}
|
||||
|
||||
// If it wasn't, than it was a processing error
|
||||
|
Reference in New Issue
Block a user