changeset 9455752df4b2 in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=9455752df4b2 description: improve error message when we cannot connect to a host via a proxy. Fixes #7358
diffstat:
src/common/connection.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 69eb6c9d4986 -r 9455752df4b2 src/common/connection.py --- a/src/common/connection.py Fri Jul 19 15:49:47 2013 +0400 +++ b/src/common/connection.py Fri Jul 19 21:12:11 2013 +0200 @@ -1262,7 +1262,12 @@ # we are not retrying, and not conecting if not self.retrycount and self.connected != 0: self.disconnect(on_purpose = True) - pritxt = _('Could not connect to "%s"') % self._hostname + if self._proxy: + pritxt = _('Could not connect to "%(host)s" via proxy "%(proxy)s"') %\ + {'host': self._hostname, 'proxy': self._proxy['host']} + else: + pritxt = _('Could not connect to "%(host)s"') % {'host': \ + self._hostname} sectxt = _('Check your connection or try again later.') if self.streamError: # show error dialog