Fix exclusiveMaximum and exclusiveMinimum error messages

This commit is contained in:
Tristan Penman 2021-06-11 13:43:09 +10:00
parent 6cc4cddc96
commit 4897d102bd

View File

@ -1631,7 +1631,7 @@ private:
constraints::MaximumConstraint makeMaximumConstraintExclusive(const AdapterType &node) constraints::MaximumConstraint makeMaximumConstraintExclusive(const AdapterType &node)
{ {
if (!node.maybeDouble()) { if (!node.maybeDouble()) {
throwRuntimeError("Expected numeric value for maximum constraint."); throwRuntimeError("Expected numeric value for exclusiveMaximum constraint.");
} }
constraints::MaximumConstraint constraint; constraints::MaximumConstraint constraint;
@ -1763,7 +1763,7 @@ private:
constraints::MinimumConstraint makeMinimumConstraintExclusive(const AdapterType &node) constraints::MinimumConstraint makeMinimumConstraintExclusive(const AdapterType &node)
{ {
if (!node.maybeDouble()) { if (!node.maybeDouble()) {
throwRuntimeError("Expected numeric value for minimum constraint."); throwRuntimeError("Expected numeric value for exclusiveMinimum constraint.");
} }
constraints::MinimumConstraint constraint; constraints::MinimumConstraint constraint;