From 6514da3a61b8021afd95b9824ce6455e25c476cd Mon Sep 17 00:00:00 2001 From: aldlfkahs Date: Wed, 14 Feb 2024 17:40:31 +0900 Subject: [PATCH] print validation error location for default error reporter --- include/jsoncons_ext/jsonschema/json_validator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons_ext/jsonschema/json_validator.hpp b/include/jsoncons_ext/jsonschema/json_validator.hpp index fa7928e3f..8faa18606 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())); } };