Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0fb19c2b by Philipp Hörist at 2018-03-24T17:55:32+01:00
Show error message on account registration
Prefer the error message text over the error code
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
=====================================
gajim/common/connection.py
=====================================
--- 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
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/0fb19c2b1c1e0962499e90cb42c686dda4ba0d9e
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/0fb19c2b1c1e0962499e90cb42c686dda4ba0d9e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits