add test

This commit is contained in:
Niels Lohmann
2021-01-24 17:45:48 +01:00
parent c190a72f3d
commit e8dba10f53
2 changed files with 8 additions and 1 deletions

View File

@@ -12739,7 +12739,7 @@ class json_pointer
{
if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive()))
{
JSON_THROW(detail::type_error::create(315, "values in object must be primitive", diagnostics_t(element)));
JSON_THROW(detail::type_error::create(315, "values in object must be primitive", diagnostics_t(element.second)));
}
// assign value to reference pointed to by JSON pointer; Note that if