Skip to content
Snippets Groups Projects
Commit 86f5953e authored by Annika Sommer's avatar Annika Sommer Committed by Philipp Hörist
Browse files

MUC: Improve error messages

Distinguish between 'item-not-found' and 'remote-server-not-found'

Fixes #8749
parent c1c2a92e
No related branches found
No related tags found
No related merge requests found
......@@ -326,8 +326,13 @@ class Interface:
obj.room_jid)
elif (obj.errcode == '404') or (obj.errcon in ('item-not-found',
'remote-server-not-found')):
# remote server does not exist
if (obj.errcon == 'remote-server-not-found'):
self.handle_gc_error(gc_control, _('Unable to join group chat'),
_('Remote server <b>%s</b> does not exist.') % obj.room_jid)
# group chat does not exist
self.handle_gc_error(gc_control, _('Unable to join group chat'),
else:
self.handle_gc_error(gc_control, _('Unable to join group chat'),
_('Group chat <b>%s</b> does not exist.') % obj.room_jid)
elif (obj.errcode == '405') or (obj.errcon == 'not-allowed'):
self.handle_gc_error(gc_control, _('Unable to join group chat'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment