Skip to content
Snippets Groups Projects
Commit 92aa1838 authored by nkour's avatar nkour
Browse files

mention account name on couldnt connect

parent 99b05424
No related branches found
No related tags found
No related merge requests found
......@@ -550,10 +550,10 @@ class Connection:
port = 5223
con_type = con.connect((hostname, port), proxy = proxy) #FIXME: blocking
if not con_type:
gajim.log.debug("Couldn't connect to %s" % name)
gajim.log.debug("Couldn't connect to %s" % self.name)
self.connected = 0
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR', _("Couldn't connect to %s") % name)
self.dispatch('ERROR', _("Couldn't connect to %s") % self.name)
return None
con.RegisterHandler('message', self._messageCB)
......@@ -588,14 +588,14 @@ class Connection:
except IOError: #probably a timeout
self.connected = 0
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR', _("Couldn't connect to %s") % name)
self.dispatch('ERROR', _("Couldn't connect to %s") % self.name)
return None
if auth:
con.initRoster()
self.connected = 2
return con
else:
gajim.log.debug("Couldn't authenticate to %s" % name)
gajim.log.debug("Couldn't authenticate to %s" % self.name)
self.connected = 0
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR', _('Authentication failed with %s, check your login and password') % name)
......@@ -800,8 +800,8 @@ class Connection:
c = common.xmpp.Client(server = config['hostname'], debug = [])
con_type = c.connect(proxy = proxy)
if not con_type:
gajim.log.debug("Couldn't connect to %s" % config['hostname'])
self.dispatch('ERROR', _("Couldn't connect to ") + config['hostname'])
gajim.log.debug("Couldn't connect to %s" % name)
self.dispatch('ERROR', _("Couldn't connect to %s") % name)
return False
else:
gajim.log.debug('Connected to server')
......
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