Skip to content

Commit

Permalink
Properly handle range error where the range limits are floats. (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Simon committed Apr 14, 2017
1 parent 4f43967 commit d446b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Expand Up @@ -213,7 +213,7 @@ func InvalidRangeError(ctx string, target interface{}, value interface{}, min bo
if !min {
comp = "less than or equal to"
}
msg := fmt.Sprintf("%s must be %s than %d but got value %#v", ctx, comp, value, target)
msg := fmt.Sprintf("%s must be %s %v but got value %#v", ctx, comp, value, target)
return ErrInvalidRequest(msg, "attribute", ctx, "value", target, "comp", comp, "expected", value)
}

Expand Down

0 comments on commit d446b57

Please sign in to comment.