1
0
mirror of https://github.com/nlohmann/json synced 2024-11-22 12:00:05 +00:00

👌 apply suggestion

Co-authored-by: Alexander Karzhenkov <karzhenkov@mail.ru>
This commit is contained in:
Niels Lohmann 2021-01-24 17:45:08 +01:00 committed by GitHub
parent 380a613f2b
commit c190a72f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -884,7 +884,7 @@ class json_pointer
{ {
if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive())) 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 // assign value to reference pointed to by JSON pointer; Note that if