mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-05 19:23:07 +02:00
16 lines
298 B
Go
16 lines
298 B
Go
package imagedata
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/imgproxy/imgproxy/v3/fetcher"
|
|
"github.com/imgproxy/imgproxy/v3/ierrors"
|
|
)
|
|
|
|
func wrapDownloadError(err error, desc string) error {
|
|
return ierrors.Wrap(
|
|
fetcher.WrapError(err), 0,
|
|
ierrors.WithPrefix(fmt.Sprintf("can't download %s", desc)),
|
|
)
|
|
}
|