error-messages: fixed typo
This commit is contained in:
parent
4c184bed77
commit
ce68fba2d3
@ -377,7 +377,7 @@ void json_validator::validate(json &instance, const json &schema_, const std::st
|
|||||||
validate(instance, s, name);
|
validate(instance, s, name);
|
||||||
count++;
|
count++;
|
||||||
} catch (std::exception &e) {
|
} catch (std::exception &e) {
|
||||||
sub_schema_err << " one schema for failed because: " << e.what() << "\n";
|
sub_schema_err << " one schema failed because: " << e.what() << "\n";
|
||||||
|
|
||||||
if (combine_logic == allOf)
|
if (combine_logic == allOf)
|
||||||
throw std::out_of_range("At least one schema has failed for " + name + " where allOf them were requested.\n" + sub_schema_err.str());
|
throw std::out_of_range("At least one schema has failed for " + name + " where allOf them were requested.\n" + sub_schema_err.str());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user