(msg string)
| 39 | } |
| 40 | |
| 41 | func newImageResolutionError(msg string) error { |
| 42 | return ImageResolutionError{errctx.NewTextError( |
| 43 | msg, |
| 44 | 1, |
| 45 | errctx.WithStatusCode(http.StatusUnprocessableEntity), |
| 46 | errctx.WithPublicMessage("Invalid source image"), |
| 47 | errctx.WithShouldReport(false), |
| 48 | errctx.WithDocsURL("https://docs.imgproxy.net/configuration/options#security"), |
| 49 | )} |
| 50 | } |
| 51 | |
| 52 | func newSourceURLError(imageURL string) error { |
| 53 | return SourceURLError{errctx.NewTextError( |
no test coverage detected