comparison mercurial/sslutil.py @ 14667:8f12dac18d13

sslutil: make messages for Python without certificate handling more helpful We now explain why there is no certificate to verify and do not give hints about cacerts when they can't be used anyway.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 18 Jun 2011 01:08:54 +0200
parents 27b080aa880a
children b2d4400398f3
comparison
equal deleted inserted replaced
14666:27b080aa880a 14667:8f12dac18d13
120 '(check hostfingerprints or web.cacerts ' 120 '(check hostfingerprints or web.cacerts '
121 'config setting)\n') % 121 'config setting)\n') %
122 (host, nicefingerprint)) 122 (host, nicefingerprint))
123 else: # python 2.5 ? 123 else: # python 2.5 ?
124 if hostfingerprint: 124 if hostfingerprint:
125 raise util.Abort(_('no certificate for %s with ' 125 raise util.Abort(_("host fingerprint for %s can't be "
126 'configured hostfingerprint') % host) 126 "verified (Python too old)") % host)
127 self.ui.warn(_('warning: %s certificate not verified ' 127 self.ui.warn(_("warning: certificate for %s can't be "
128 '(check web.cacerts config setting)\n') % 128 "verified (Python too old)\n") % host)
129 host)