Skip to content

Commit 1e0fcda

Browse files
Merge pull request #489 from aldlfkahs/validator
jsonschema: print validation error location for default error reporter
2 parents 9096ffe + 6514da3 commit 1e0fcda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jsoncons_ext/jsonschema/json_validator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace jsonschema {
2727
{
2828
void do_error(const validation_output& o) override
2929
{
30-
JSONCONS_THROW(validation_error(o.message()));
30+
JSONCONS_THROW(validation_error(o.instance_location() + ": " + o.message()));
3131
}
3232
};
3333

0 commit comments

Comments
 (0)