Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2018-03-24 19:55:32 +0300
committerPhilipp Hörist <philipp@hoerist.com>2018-03-26 23:46:57 +0300
commit03520606e939a575a19be23035e61de12f7c91a4 (patch)
tree347d7a90c9c94805dec5222a48b059f4300ad9ca
parent2b003cc427329bca0dacfbc06a605908187e26e7 (diff)
Show error message on account registration
Prefer the error message text over the error code
-rw-r--r--gajim/common/connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gajim/common/connection.py b/gajim/common/connection.py
index 17feaa799..16e7a8fcf 100644
--- a/gajim/common/connection.py
+++ b/gajim/common/connection.py
@@ -895,8 +895,9 @@ class Connection(CommonConnection, ConnectionHandlers):
if self.new_account_form:
def _on_register_result(result):
if not nbxmpp.isResultNode(result):
+ reason = result.getErrorMsg() or result.getError()
app.nec.push_incoming_event(AccountNotCreatedEvent(
- None, conn=self, reason=result.getError()))
+ None, conn=self, reason=reason))
return
if app.HAVE_GPG:
self.USE_GPG = True