Skip to content

Commit

Permalink
print validation error location for default error reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
aldlfkahs committed Feb 14, 2024
1 parent 9096ffe commit 6514da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jsoncons_ext/jsonschema/json_validator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace jsonschema {
{
void do_error(const validation_output& o) override
{
JSONCONS_THROW(validation_error(o.message()));
JSONCONS_THROW(validation_error(o.instance_location() + ": " + o.message()));
}
};

Expand Down

0 comments on commit 6514da3

Please sign in to comment.