diff options
author | kshalnev <kshalnev@yandex-team.com> | 2023-09-01 12:03:26 +0300 |
---|---|---|
committer | kshalnev <kshalnev@yandex-team.com> | 2023-09-01 12:23:22 +0300 |
commit | 79de9208b0944f6eba265db2b34f4c36735dd06c (patch) | |
tree | e76717075652d1b53ffdf42137501d0616291a95 /library/cpp/yson/varint.cpp | |
parent | 41c83d231964020758ff100e2c51b5a846aee5a4 (diff) | |
download | ydb-79de9208b0944f6eba265db2b34f4c36735dd06c.tar.gz |
Fixed exception messages about VarUint/VarInt unpack
Diffstat (limited to 'library/cpp/yson/varint.cpp')
-rw-r--r-- | library/cpp/yson/varint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yson/varint.cpp b/library/cpp/yson/varint.cpp index d538ee3cff..deed1fdbd6 100644 --- a/library/cpp/yson/varint.cpp +++ b/library/cpp/yson/varint.cpp @@ -41,7 +41,7 @@ namespace NYson { ythrow yexception() << "The data is too long to read ui64"; } if (input->Read(&byte, 1) != 1) { - ythrow yexception() << "The data is too long to read ui64"; + ythrow yexception() << "The data is too short to read ui64"; } result |= (static_cast<ui64>(byte & 0x7F)) << (7 * count); ++count; @@ -55,7 +55,7 @@ namespace NYson { ui64 varInt; int bytesRead = ReadVarUInt64(input, &varInt); if (varInt > Max<ui32>()) { - ythrow yexception() << "The data is too long to read ui64"; + ythrow yexception() << "The data is too long to read i32"; } *value = ZigZagDecode32(static_cast<ui32>(varInt)); return bytesRead; |