1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 01:06:17 +00:00

Better error message for max_database_id>max_message_id.

This commit is contained in:
Fabian Schlenz 2016-07-05 15:22:32 +02:00
parent f5a478a454
commit 140dfdfabc

View File

@ -91,7 +91,7 @@ class DownloadManager {
if (max_database_id == max_message_id) {
System.out.println("No new messages to download.");
} else if (max_database_id > max_message_id) {
throw new RuntimeException("max_database_id is bigger then max_message_id. This shouldn't be aple to happen. Ever.");
throw new RuntimeException("max_database_id is bigger then max_message_id. This shouldn't happen. But the telegram api nonetheless does that sometimes. Just ignore this error, wait a few seconds and then try again.");
} else {
int start_id = max_database_id + 1;
int current_start_id = start_id;