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

Function newRequestError

fetcher/errors.go:33–41  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

31)
32
33func newRequestError(err error) error {
34 return RequestError{errctx.NewWrappedError(
35 err,
36 1,
37 errctx.WithStatusCode(http.StatusNotFound),
38 errctx.WithPublicMessage(msgSourceIsUnreachable),
39 errctx.WithShouldReport(false),
40 )}
41}
42
43var schemeEnvVars = map[string]string{
44 "local": "IMGPROXY_LOCAL_FILESYSTEM_ROOT",

Callers 2

BuildRequestMethod · 0.85
WrapErrorFunction · 0.85

Calls 4

NewWrappedErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected