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

Function newTypeMismatchError

options/errors.go:13–18  ·  view source on GitHub ↗
(key string, exp, got any)

Source from the content-addressed store, hash-verified

11)
12
13func newTypeMismatchError(key string, exp, got any) error {
14 return TypeMismatchError{errctx.NewTextError(
15 fmt.Sprintf("option %s is %T, not %T", key, exp, got),
16 1,
17 )}
18}

Callers 4

GetFunction · 0.85
AppendToSliceFunction · 0.85
GetIntMethod · 0.85
GetFloatMethod · 0.85

Calls 1

NewTextErrorFunction · 0.92

Tested by

no test coverage detected