mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-23 22:11:10 +02:00
19 lines
292 B
Go
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,
|
|
)
|
|
}
|