diff --git a/include/jsoncons_ext/jsonschema/json_validator.hpp b/include/jsoncons_ext/jsonschema/json_validator.hpp index fa7928e3f8..8faa186062 100644 --- a/include/jsoncons_ext/jsonschema/json_validator.hpp +++ b/include/jsoncons_ext/jsonschema/json_validator.hpp @@ -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())); } };