Improve error message.

GitOrigin-RevId: c61623277759527102a48d2e6b8992ee87c90beb
This commit is contained in:
levlam 2020-01-24 06:33:47 +03:00
parent c08084b1e6
commit 2f9db6e6e6
1 changed files with 2 additions and 1 deletions

View File

@ -2022,7 +2022,8 @@ StickerSetId StickersManager::on_get_messages_sticker_set(StickerSetId sticker_s
}
}
if (static_cast<int>(s->sticker_ids.size()) != s->sticker_count) {
LOG(ERROR) << "Wrong sticker set size specified in " << set_id << " from " << source;
LOG(ERROR) << "Wrong sticker set size " << s->sticker_count << " instead of " << s->sticker_ids.size()
<< " specified in " << set_id << " from " << source;
s->sticker_count = static_cast<int>(s->sticker_ids.size());
}