aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/CountryInfoManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'td/telegram/CountryInfoManager.cpp')
-rw-r--r--td/telegram/CountryInfoManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/td/telegram/CountryInfoManager.cpp b/td/telegram/CountryInfoManager.cpp
index d9f71f6f1..2953c11cd 100644
--- a/td/telegram/CountryInfoManager.cpp
+++ b/td/telegram/CountryInfoManager.cpp
@@ -203,10 +203,10 @@ void CountryInfoManager::do_get_countries(string language_code, bool is_recursiv
}
if (is_recursive) {
- return promise.set_error(Status::Error(500, "Requested data is inaccessible"));
+ return promise.set_error(500, "Requested data is inaccessible");
}
if (language_code.empty()) {
- return promise.set_error(Status::Error(400, "Invalid language code specified"));
+ return promise.set_error(400, "Invalid language code specified");
}
load_country_list(language_code, 0,
PromiseCreator::lambda([actor_id = actor_id(this), language_code,
@@ -246,10 +246,10 @@ void CountryInfoManager::do_get_phone_number_info(string phone_number_prefix, st
}
if (is_recursive) {
- return promise.set_error(Status::Error(500, "Requested data is inaccessible"));
+ return promise.set_error(500, "Requested data is inaccessible");
}
if (language_code.empty()) {
- return promise.set_error(Status::Error(400, "Invalid language code specified"));
+ return promise.set_error(400, "Invalid language code specified");
}
load_country_list(language_code, 0,
PromiseCreator::lambda([actor_id = actor_id(this), phone_number_prefix, language_code,