MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / wrapDownloadError

Function wrapDownloadError

imagedata/errors.go:23–28  ·  view source on GitHub ↗
(err error, desc string)

Source from the content-addressed store, hash-verified

21}
22
23func wrapDownloadError(err error, desc string) error {
24 return errctx.Wrap(
25 fetcher.WrapError(err, 1),
26 errctx.WithPrefix(fmt.Sprintf("can't download %s", desc)),
27 )
28}

Callers 3

ErrorMethod · 0.85
DownloadSyncMethod · 0.85
DownloadAsyncMethod · 0.85

Calls 3

WrapFunction · 0.92
WrapErrorFunction · 0.92
WithPrefixFunction · 0.92

Tested by

no test coverage detected