mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 11:42:48 +02:00
15 lines
236 B
Go
15 lines
236 B
Go
package imagedata
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/imgproxy/imgproxy/v3/ierrors"
|
|
)
|
|
|
|
func wrapDownloadError(err error, desc string) error {
|
|
return ierrors.Wrap(
|
|
err, 0,
|
|
ierrors.WithPrefix(fmt.Sprintf("can't download %s", desc)),
|
|
)
|
|
}
|