aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-03-14 23:31:57 +0300
committerlevlam <levlam@telegram.org>2023-03-14 23:31:57 +0300
commitcf9d70f64519dc181a31b66267e034beaa3ce086 (patch)
treedd7889f85694ba3d33fb893c84e486a69337f95b
parent387e84004bc8e741a5c9d1161c5575fdd00fc35b (diff)
Improve error message.
-rw-r--r--tddb/td/db/binlog/BinlogEvent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tddb/td/db/binlog/BinlogEvent.cpp b/tddb/td/db/binlog/BinlogEvent.cpp
index f1ff50ab9..c74f7378b 100644
--- a/tddb/td/db/binlog/BinlogEvent.cpp
+++ b/tddb/td/db/binlog/BinlogEvent.cpp
@@ -40,7 +40,8 @@ Status BinlogEvent::validate() const {
TlParser parser(as_slice(raw_event_));
auto size = static_cast<uint32>(parser.fetch_int());
if (size_ != size || size_ != raw_event_.size()) {
- return Status::Error(PSLICE() << "Size of event changed: " << tag("was", size_) << tag("now", size));
+ return Status::Error(PSLICE() << "Size of event changed: " << tag("was", size_) << tag("now", size)
+ << tag("real size", raw_event_.size()));
}
parser.fetch_string_raw<Slice>(size_ - TAIL_SIZE - sizeof(int)); // skip
auto stored_crc32 = static_cast<uint32>(parser.fetch_int());