瀏覽代碼

Use imagefetcher.WrapError in wrapDownloadError

DarthSim 1 月之前
父節點
當前提交
3f205451c7
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      imagedata/errors.go

+ 2 - 1
imagedata/errors.go

@@ -4,11 +4,12 @@ import (
 	"fmt"
 
 	"github.com/imgproxy/imgproxy/v3/ierrors"
+	"github.com/imgproxy/imgproxy/v3/imagefetcher"
 )
 
 func wrapDownloadError(err error, desc string) error {
 	return ierrors.Wrap(
-		err, 0,
+		imagefetcher.WrapError(err), 0,
 		ierrors.WithPrefix(fmt.Sprintf("can't download %s", desc)),
 	)
 }