Better error messages.
GitOrigin-RevId: 9d77793cb6bcc8d3f9c64c01324ca55bd61a08c4
This commit is contained in:
parent
16b33f67c7
commit
811cc8f393
@ -3322,7 +3322,7 @@ void Td::request(uint64 id, tl_object_ptr<td_api::Function> function) {
|
||||
pending_preauthentication_requests_.emplace_back(id, std::move(function));
|
||||
return;
|
||||
}
|
||||
return send_error_raw(id, 401, "Initialization parameters are needed");
|
||||
return send_error_raw(id, 401, "Initialization parameters are needed: call setTdlibParameters first");
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -3355,7 +3355,7 @@ void Td::request(uint64 id, tl_object_ptr<td_api::Function> function) {
|
||||
pending_preauthentication_requests_.emplace_back(id, std::move(function));
|
||||
return;
|
||||
}
|
||||
return send_error_raw(id, 401, "Database encryption key is needed");
|
||||
return send_error_raw(id, 401, "Database encryption key is needed: call checkDatabaseEncryptionKey first");
|
||||
}
|
||||
return answer_ok_query(id, init(as_db_key(encryption_key)));
|
||||
}
|
||||
|
@ -2337,7 +2337,7 @@ void FileManager::on_partial_generate(QueryId query_id, const PartialLocalFileLo
|
||||
}
|
||||
file_node->set_local_location(LocalFileLocation(partial_local), 0);
|
||||
// TODO check for size and local_size, abort generation if needed
|
||||
if (expected_size != 0) {
|
||||
if (expected_size > 0) {
|
||||
file_node->set_expected_size(expected_size);
|
||||
}
|
||||
if (!file_node->generate_was_update_) {
|
||||
|
Loading…
Reference in New Issue
Block a user