diff options
author | bulatman <bulatman@yandex-team.com> | 2022-10-07 14:52:01 +0300 |
---|---|---|
committer | bulatman <bulatman@yandex-team.com> | 2022-10-07 14:52:01 +0300 |
commit | 2c90eec063340e2538e15e1718821387f5d21f8a (patch) | |
tree | d3e9b9862e851365a5bc19df8c57e7cf11d28049 /library/cpp/protobuf/json/json2proto.cpp | |
parent | d10b241085e3d8ea303601bf61d35b2b11ad8146 (diff) | |
download | ydb-2c90eec063340e2538e15e1718821387f5d21f8a.tar.gz |
Add full message name to error about unknown field in json2proto
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.cpp')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp index 903ffa1a85..93424a5a8e 100644 --- a/library/cpp/protobuf/json/json2proto.cpp +++ b/library/cpp/protobuf/json/json2proto.cpp @@ -470,7 +470,7 @@ namespace NProtobufJson { knownFields[GetFieldName(*field, config)] = 1; } for (const auto& f : json.GetMap()) { - Y_ENSURE(knownFields.contains(f.first), "unknown field " << f.first); + Y_ENSURE(knownFields.contains(f.first), "unknown field \"" << f.first << "\" for \"" << descriptor->full_name() << "\""); } } } |