Mercurial > hg > mercurial-source
diff mercurial/url.py @ 12599:14198926975d stable
url: mark certificate error string for translation
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Fri, 01 Oct 2010 16:08:46 +0200 (2010-10-01) |
parents | f2937d6492c5 |
children | 1393a81b3bdc |
line wrap: on
line diff
--- a/mercurial/url.py +++ b/mercurial/url.py @@ -511,9 +511,10 @@ ca_certs=cacerts) msg = _verifycert(self.sock.getpeercert(), self.host) if msg: - raise util.Abort('%s certificate error: %s' % (self.host, msg)) - self.ui.debug(_('%s certificate successfully verified\n') % - self.host) + raise util.Abort(_('%s certificate error: %s') % + (self.host, msg)) + self.ui.debug('%s certificate successfully verified\n' % + self.host) else: httplib.HTTPSConnection.connect(self)