Skip to content

Commit 6962b1a

Browse files
author
Paul Pop
authored
Pass in the correct value when building the error message
1 parent 0cf370c commit 6962b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/validation/constraints/standard/AbstractDecimalMinMaxConstraint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected List<GraphQLError> runConstraint(ValidationEnvironment validationEnvir
4444
}
4545

4646
if (!isOK) {
47-
return mkError(validationEnvironment, "value", validatedValue, "inclusive", inclusive);
47+
return mkError(validationEnvironment, "value", value, "inclusive", inclusive);
4848
}
4949

5050
return Collections.emptyList();

0 commit comments

Comments
 (0)