From 68212198a0e44086bd8a63d23365c3f56e391f0f Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 9 Dec 2021 17:49:19 +0300 Subject: [PATCH] Improve error message. --- td/telegram/ContactsManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index a89bc5277..8daf7fcad 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -10414,8 +10414,8 @@ void ContactsManager::on_get_user_photos(UserId user_id, int32 offset, int32 lim auto photo_count = narrow_cast(photos.size()); int32 min_total_count = (offset >= 0 && photo_count > 0 ? offset : 0) + photo_count; if (total_count < min_total_count) { - LOG(ERROR) << "Wrong photos total_count " << total_count << ". Receive " << photo_count << " photos with offset " - << offset; + LOG(ERROR) << "Receive wrong photos total_count " << total_count << " for user " << user_id << ": receive " + << photo_count << " photos with offset " << offset; total_count = min_total_count; } LOG_IF(ERROR, limit < photo_count) << "Requested not more than " << limit << " photos, but " << photo_count