diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/protobuf | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/protobuf')
-rw-r--r-- | library/cpp/protobuf/json/proto2json_printer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/protobuf/json/proto2json_printer.cpp b/library/cpp/protobuf/json/proto2json_printer.cpp index 51a947be08..2b2c9b1713 100644 --- a/library/cpp/protobuf/json/proto2json_printer.cpp +++ b/library/cpp/protobuf/json/proto2json_printer.cpp @@ -211,7 +211,7 @@ namespace NProtobufJson { const FieldDescriptor& field, IJsonOutput& json, TStringBuf key) { - Y_VERIFY(!field.is_repeated(), "field is repeated."); + Y_ABORT_UNLESS(!field.is_repeated(), "field is repeated."); if (!key) { key = MakeKey(field); @@ -303,7 +303,7 @@ namespace NProtobufJson { const FieldDescriptor& field, IJsonOutput& json, TStringBuf key) { - Y_VERIFY(field.is_repeated(), "field isn't repeated."); + Y_ABORT_UNLESS(field.is_repeated(), "field isn't repeated."); const bool isMap = field.is_map() && GetConfig().MapAsObject; if (!key) { @@ -405,10 +405,10 @@ namespace NProtobufJson { void TProto2JsonPrinter::PrintKeyValue(const NProtoBuf::Message& proto, IJsonOutput& json) { const FieldDescriptor* keyField = proto.GetDescriptor()->FindFieldByName("key"); - Y_VERIFY(keyField, "Map entry key field not found."); + Y_ABORT_UNLESS(keyField, "Map entry key field not found."); TString key = MakeKey(proto, *keyField); const FieldDescriptor* valueField = proto.GetDescriptor()->FindFieldByName("value"); - Y_VERIFY(valueField, "Map entry value field not found."); + Y_ABORT_UNLESS(valueField, "Map entry value field not found."); PrintField(proto, *valueField, json, key); } |