(format imagetype.Type)
| 13 | ) |
| 14 | |
| 15 | func newSaveFormatError(format imagetype.Type) error { |
| 16 | return SaveFormatError{errctx.NewTextError( |
| 17 | fmt.Sprintf("Can't save %s, probably not supported by your libvips", format), |
| 18 | 1, |
| 19 | errctx.WithStatusCode(http.StatusUnprocessableEntity), |
| 20 | errctx.WithPublicMessage("Invalid URL"), |
| 21 | errctx.WithShouldReport(false), |
| 22 | )} |
| 23 | } |
no test coverage detected