(err error)
| 12 | ) |
| 13 | |
| 14 | func newTypeDetectionError(err error) error { |
| 15 | return TypeDetectionError{errctx.NewWrappedError( |
| 16 | err, |
| 17 | 1, |
| 18 | errctx.WithPrefix("failed to detect image type"), |
| 19 | errctx.WithStatusCode(http.StatusUnprocessableEntity), |
| 20 | errctx.WithPublicMessage("Failed to detect source image type"), |
| 21 | errctx.WithShouldReport(false), |
| 22 | )} |
| 23 | } |
| 24 | |
| 25 | func newUnknownFormatError() error { |
| 26 | return UnknownFormatError{errctx.NewTextError( |
no test coverage detected