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

Function newInvalidArgsError

options/parser/errors.go:83–85  ·  view source on GitHub ↗

newInvalidArgsError creates a standardized error for invalid arguments

(ctx context.Context, key string, args []string)

Source from the content-addressed store, hash-verified

81
82// newInvalidArgsError creates a standardized error for invalid arguments
83func newInvalidArgsError(ctx context.Context, key string, args []string) error {
84 return newOptionArgumentError(ctx, key, "Invalid %s arguments: %s", key, args)
85}
86
87// newInvalidArgumentError creates a standardized error for an invalid single argument
88func newInvalidArgumentError(ctx context.Context, key, arg string, expected ...string) error {

Callers 4

applyBackgroundOptionMethod · 0.85
ensureMaxArgsMethod · 0.85
parseFloatMethod · 0.85
parseGravityMethod · 0.85

Calls 1

newOptionArgumentErrorFunction · 0.85

Tested by

no test coverage detected