Include property name in validation error when unmatched against properties or regexes in PropertiesConstraint

This commit is contained in:
Tristan Penman 2015-10-13 13:10:43 +11:00
parent 4f4f9cf81b
commit 05214c6630

View File

@ -895,7 +895,9 @@ public:
return false;
}
} else if (results) {
results->pushError(context, "Failed to match property name to any names in 'properties' or regexes in 'patternProperties'");
results->pushError(context, "Failed to match property name '" +
propertyName + "' to any names in 'properties' or "
"regexes in 'patternProperties'");
validated = false;
} else {
return false;