Skip to content

Commit e831d0e

Browse files
committed
Fix
1 parent ad8d249 commit e831d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (v *Validation) Valid(typ, value string) error {
446446
return validationError(v.Error, "value %d is more than the maximum %d", num, v.Max)
447447
}
448448
if v.Monotonic != "" && v.Monotonic != ValidationMonotonicIncreasing && v.Monotonic != ValidationMonotonicDecreasing {
449-
return validationError(v.Error, "number monotonicity can be either %q or %q", ValidationMonotonicIncreasing, ValidationMonotonicDecreasing)
449+
return fmt.Errorf("number monotonicity can be either %q or %q", ValidationMonotonicIncreasing, ValidationMonotonicDecreasing)
450450
}
451451
case "list(string)":
452452
var listOfStrings []string

0 commit comments

Comments
 (0)