1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-23 22:11:10 +02:00
Files
imgproxy/options/errors.go

19 lines
292 B
Go
Raw Permalink Normal View History

package options
import (
"fmt"
"github.com/imgproxy/imgproxy/v3/ierrors"
)
type (
2025-09-23 20:16:36 +03:00
TypeMismatchError struct{ error }
)
2025-09-23 20:16:36 +03:00
func newTypeMismatchError(key string, exp, got any) error {
return ierrors.Wrap(
TypeMismatchError{fmt.Errorf("option %s is %T, not %T", key, exp, got)},
1,
)
}