(err error)
| 31 | ) |
| 32 | |
| 33 | func 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 | |
| 43 | var schemeEnvVars = map[string]string{ |
| 44 | "local": "IMGPROXY_LOCAL_FILESYSTEM_ROOT", |
no test coverage detected