diff options
author | a-sidorin <a-sidorin@yandex-team.ru> | 2022-02-10 16:50:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:02 +0300 |
commit | 9473a88c91129dfe21343af486bebb93a0b33291 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf | |
parent | 4ffc252d74adad4b93762976940ef53012cb98df (diff) | |
download | ydb-9473a88c91129dfe21343af486bebb93a0b33291.tar.gz |
Restoring authorship annotation for <a-sidorin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf')
-rw-r--r-- | library/cpp/protobuf/json/json2proto.cpp | 2 | ||||
-rw-r--r-- | library/cpp/protobuf/json/ut/json2proto_ut.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/protobuf/json/json2proto.cpp b/library/cpp/protobuf/json/json2proto.cpp index 6916d23b0e..640c10f5a5 100644 --- a/library/cpp/protobuf/json/json2proto.cpp +++ b/library/cpp/protobuf/json/json2proto.cpp @@ -88,7 +88,7 @@ JsonString2Field(const NJson::TJsonValue& json, Y_ASSERT(!!reflection); if (!json.IsString() && !config.CastRobust) { - ythrow yexception() << "Invalid type of JSON field '" << field.name() << "': " + ythrow yexception() << "Invalid type of JSON field '" << field.name() << "': " << "IsString() failed while " << "CPPTYPE_STRING is expected."; } diff --git a/library/cpp/protobuf/json/ut/json2proto_ut.cpp b/library/cpp/protobuf/json/ut/json2proto_ut.cpp index 9d8d8bb19a..0dfe57bc7a 100644 --- a/library/cpp/protobuf/json/ut/json2proto_ut.cpp +++ b/library/cpp/protobuf/json/ut/json2proto_ut.cpp @@ -985,7 +985,7 @@ Y_UNIT_TEST(TestMapAsObjectConfigNotSet) { TJson2ProtoConfig config; UNIT_ASSERT_EXCEPTION_CONTAINS( Json2Proto<TMapType>(modelStr, config), yexception, - "Map as object representation is not allowed"); + "Map as object representation is not allowed"); } // TestMapAsObjectNotSet Y_UNIT_TEST(TestMergeFlatOptional) { |