fixing error reporting

This commit is contained in:
Nikos Kouremenos 2005-06-09 23:08:28 +00:00
parent b5cc37db3a
commit 0227302e05
1 changed files with 3 additions and 3 deletions

View File

@ -663,7 +663,7 @@ class Connection:
self.connected = 0
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name,
''))
_('Please check that you have an internet connection available')))
return None
if auth:
con.initRoster()
@ -673,8 +673,8 @@ class Connection:
gajim.log.debug("Couldn't authenticate to %s" % self.name)
self.connected = 0
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR', (_('Authentication failed with "%s"' % name),
('Please check your login and password for correctness.')))
self.dispatch('ERROR', (_('Authentication failed with "%s"') % self.name,
_('Please check your login and password for correctness.')))
return None
# END connect