mercurial/url.py
branchstable
changeset 13328 a939f08fae9c
parent 13314 8dc488dfcdb4
child 13329 4e92ad05fe18
--- a/mercurial/url.py	Mon Jan 31 13:33:41 2011 +0100
+++ b/mercurial/url.py	Sat Jan 29 23:23:24 2011 +0900
@@ -541,8 +541,9 @@
                         ca_certs=cacerts)
                 msg = _verifycert(self.sock.getpeercert(), self.host)
                 if msg:
-                    raise util.Abort(_('%s certificate error: %s') %
-                                     (self.host, msg))
+                    raise util.Abort(_('%s certificate error: %s '
+                                       '(use --insecure to connect '
+                                       'insecurely)') % (self.host, msg))
                 self.ui.debug('%s certificate successfully verified\n' %
                               self.host)
             else: