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

19 lines
292 B
Go

package options
import (
"fmt"
"github.com/imgproxy/imgproxy/v3/ierrors"
)
type (
TypeMismatchError struct{ error }
)
func newTypeMismatchError(key string, exp, got any) error {
return ierrors.Wrap(
TypeMismatchError{fmt.Errorf("option %s is %T, not %T", key, exp, got)},
1,
)
}