# HG changeset patch # User Matt Mackall # Date 2010-10-01 15:16:52 # Node ID 93d8bff78c96fe7e33237b257558ee97290048a4 # Parent 34a9a71d586c45f2b70c0f2b58a64c74f769215e # Parent 14198926975d1aadad4b48e6e829c724d2516d65 merge with i18n diff --git a/mercurial/url.py b/mercurial/url.py --- a/mercurial/url.py +++ b/mercurial/url.py @@ -511,9 +511,10 @@ if has_https: 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)