merge with stable
authorMatt Mackall <mpm@selenic.com>
Mon, 11 Jul 2016 08:54:13 -0500
changeset 29501 be68a4445041
parent 29500 4b16a5bd9948 (current diff)
parent 29460 a7d1532b26a1 (diff)
child 29502 8361131b4768
merge with stable
mercurial/sslutil.py
--- a/mercurial/sslutil.py	Wed Jul 06 21:16:00 2016 -0700
+++ b/mercurial/sslutil.py	Mon Jul 11 08:54:13 2016 -0500
@@ -384,7 +384,7 @@
                 if _dnsnamematch(value, hostname):
                     return
             except wildcarderror as e:
-                return e.message
+                return e.args[0]
 
             dnsnames.append(value)
 
@@ -405,7 +405,7 @@
                         if _dnsnamematch(value, hostname):
                             return
                     except wildcarderror as e:
-                        return e.message
+                        return e.args[0]
 
                     dnsnames.append(value)