Improve error message.

This commit is contained in:
levlam 2020-12-28 18:57:41 +03:00
parent 584b5352ca
commit aee5806593

View File

@ -69,7 +69,7 @@ class RequestActor : public Actor {
bool is_authorized = td->auth_manager_ && td->auth_manager_->is_authorized();
if (is_authorized) {
LOG(ERROR) << "Promise was lost";
do_send_error(Status::Error(500, "Query can't be answered due to bug in the TDLib"));
do_send_error(Status::Error(500, "Query can't be answered due to a bug in TDLib"));
} else {
do_send_error(Status::Error(401, "Unauthorized"));
}