aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/Premium.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-09-09 00:41:58 +0300
committerlevlam <levlam@telegram.org>2025-09-09 00:41:58 +0300
commit39f8e31638120e39b128b74fe9ec48643c8767d2 (patch)
tree901f0dce0c7c4e9eacb569c34cee5eed0a587043 /td/telegram/Premium.cpp
parenta88e621f7fbb5aa39fa84556a22dce76403cfdcc (diff)
Fallback to on_error if telegram_api::payments_paymentVerificationNeeded is received.
Diffstat (limited to 'td/telegram/Premium.cpp')
-rw-r--r--td/telegram/Premium.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp
index 918904781..81298b84a 100644
--- a/td/telegram/Premium.cpp
+++ b/td/telegram/Premium.cpp
@@ -608,7 +608,7 @@ class SendPremiumGiftQuery final : public Td::ResultHandler {
}
case telegram_api::payments_paymentVerificationNeeded::ID:
LOG(ERROR) << "Receive " << to_string(payment_result);
- break;
+ return on_error(Status::Error(500, "Receive invalid response"));
default:
UNREACHABLE();
}