From 0fb19c2b1c1e0962499e90cb42c686dda4ba0d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 24 Mar 2018 17:55:32 +0100 Subject: [PATCH] Show error message on account registration Prefer the error message text over the error code --- gajim/common/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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