--- a/mercurial/sslutil.py Thu Jan 26 11:23:14 2012 -0600
+++ b/mercurial/sslutil.py Thu Jan 26 11:23:15 2012 -0600
@@ -122,8 +122,9 @@
if hostfingerprint:
if peerfingerprint.lower() != \
hostfingerprint.replace(':', '').lower():
- raise util.Abort(_('invalid certificate for %s with '
- 'fingerprint %s') % (host, nicefingerprint))
+ raise util.Abort(_('certificate for %s has unexpected '
+ 'fingerprint %s') % (host, nicefingerprint),
+ hint=_('check hostfingerprint configuration'))
self.ui.debug('%s certificate matched fingerprint %s\n' %
(host, nicefingerprint))
elif cacerts: