Skip to content
Snippets Groups Projects
Commit 8f12dac1 authored by kiilerix's avatar kiilerix
Browse files

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.
parent 27b080aa
No related branches found
No related tags found
No related merge requests found
......@@ -122,8 +122,7 @@
(host, nicefingerprint))
else: # python 2.5 ?
if hostfingerprint:
raise util.Abort(_('no certificate for %s with '
'configured hostfingerprint') % host)
self.ui.warn(_('warning: %s certificate not verified '
'(check web.cacerts config setting)\n') %
host)
raise util.Abort(_("host fingerprint for %s can't be "
"verified (Python too old)") % host)
self.ui.warn(_("warning: certificate for %s can't be "
"verified (Python too old)\n") % host)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment