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

Function NewInvalidPathError

handlers/errors.go:53–59  ·  view source on GitHub ↗

NewInvalidPathError creates "invalid path" error

(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

51
52// NewInvalidPathError creates "invalid path" error
53func NewInvalidPathError(ctx context.Context, path string) errctx.Error {
54 return newInvalidURLErrorf(
55 errctx.DocsBaseURL(ctx, defaultDocsUrl),
56 http.StatusNotFound,
57 "Invalid path: %s", path,
58 )
59}
60
61// NewCantSaveError creates "resulting image not supported" error
62func NewCantSaveError(format imagetype.Type) errctx.Error {

Callers 1

SplitPathSignatureFunction · 0.85

Calls 2

DocsBaseURLFunction · 0.92
newInvalidURLErrorfFunction · 0.85

Tested by

no test coverage detected