Skip to content

Commit 6514da3

Browse files
author
aldlfkahs
committed
print validation error location for default error reporter
1 parent 9096ffe commit 6514da3

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)