Commit 118be135 authored by Philipp Hörist's avatar Philipp Hörist

AccountWizard: Add fallback error message

parent 507a3cf1
Pipeline #5571 passed with stages
in 2 minutes and 41 seconds
......@@ -439,9 +439,11 @@ class AccountWizard(Assistant):
self._disconnect()
def _on_register_error(self, result):
self._show_error_page(_('Error'),
_('Error'),
result.get_text())
error_text = result.get_text()
if not error_text:
error_text = _('The server rejected the registration '
'without an error message')
self._show_error_page(_('Error'), _('Error'), error_text)
register_data = result.get_data()
if register_data is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment