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

Function newSaveFormatError

processing/errors.go:15–23  ·  view source on GitHub ↗
(format imagetype.Type)

Source from the content-addressed store, hash-verified

13)
14
15func 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}

Callers 1

determineOutputFormatMethod · 0.85

Calls 4

NewTextErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected