summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 0db6f3fa84..dcc8367e16 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -278,8 +278,10 @@ bool WhatsAppProto::Register(int state, const string &cc, const string &number,
std::string reason = resp["reason"].as_string();
if (reason == "stale")
NotifyEvent(ptszTitle, TranslateT("Registration failed due to stale code. Please request a new code"), NULL, WHATSAPP_EVENT_CLIENT);
- else
- NotifyEvent(ptszTitle, TranslateT("Registration failed."), NULL, WHATSAPP_EVENT_CLIENT);
+ else {
+ CMString tmp(FORMAT, TranslateT("Registration failed. Reason: %s"), reason.c_str());
+ NotifyEvent(ptszTitle, tmp, NULL, WHATSAPP_EVENT_CLIENT);
+ }
const JSONNode &tmpVal = resp["retry_after"];
if (tmpVal) {