aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/util/pb_io.cpp
diff options
context:
space:
mode:
authorgeolog <geolog@yandex-team.ru>2022-02-10 16:50:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:37 +0300
commitc86baa7524ad1c8526e4487ebe0001b20bb259d4 (patch)
tree00967b15bfd1f4f03631873c99083502bf6cfe6a /library/cpp/protobuf/util/pb_io.cpp
parent55f877db25115ad21c92408279238bb2161ebc1d (diff)
downloadydb-c86baa7524ad1c8526e4487ebe0001b20bb259d4.tar.gz
Restoring authorship annotation for <geolog@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/protobuf/util/pb_io.cpp')
-rw-r--r--library/cpp/protobuf/util/pb_io.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/protobuf/util/pb_io.cpp b/library/cpp/protobuf/util/pb_io.cpp
index 6270ee0624..64e16d2ace 100644
--- a/library/cpp/protobuf/util/pb_io.cpp
+++ b/library/cpp/protobuf/util/pb_io.cpp
@@ -144,12 +144,12 @@ void ParseFromTextFormat(IInputStream& in, NProtoBuf::Message& m,
ConfigureParser(options, p);
if (!p.Parse(&adaptor, &m)) {
- // remove everything that may have been read
- m.Clear();
- ythrow yexception() << "ParseFromTextFormat failed on Parse for " << m.GetTypeName();
- }
-}
-
+ // remove everything that may have been read
+ m.Clear();
+ ythrow yexception() << "ParseFromTextFormat failed on Parse for " << m.GetTypeName();
+ }
+}
+
void ParseFromTextFormat(const TString& fileName, NProtoBuf::Message& m,
const EParseFromTextFormatOptions options) {
/* TUnbufferedFileInput is unbuffered, but TCopyingInputStreamAdaptor adds