# HG changeset patch # User Martin Geisler # Date 1285942126 -7200 # Node ID 14198926975d1aadad4b48e6e829c724d2516d65 # Parent 10dcfba4f16d42f2fd80faf91818a0d6607591da url: mark certificate error string for translation diff -r 10dcfba4f16d -r 14198926975d mercurial/url.py --- a/mercurial/url.py Thu Sep 30 19:09:58 2010 -0500 +++ b/mercurial/url.py Fri Oct 01 16:08:46 2010 +0200 @@ -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)