diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2018-03-24 19:55:32 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2018-03-26 23:46:57 +0300 |
commit | 03520606e939a575a19be23035e61de12f7c91a4 (patch) | |
tree | 347d7a90c9c94805dec5222a48b059f4300ad9ca | |
parent | 2b003cc427329bca0dacfbc06a605908187e26e7 (diff) |
Show error message on account registration
Prefer the error message text over the error code
-rw-r--r-- | gajim/common/connection.py | 3 |
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 |