mercurial/sslutil.py
changeset 29389 98e8313dcd9e
parent 29341 0d83ad967bf8
child 29410 222f6834c69a
--- a/mercurial/sslutil.py	Tue Jun 07 12:10:01 2016 +0200
+++ b/mercurial/sslutil.py	Tue Jun 14 11:53:55 2016 +0200
@@ -76,15 +76,15 @@
 
         def load_verify_locations(self, cafile=None, capath=None, cadata=None):
             if capath:
-                raise error.Abort('capath not supported')
+                raise error.Abort(_('capath not supported'))
             if cadata:
-                raise error.Abort('cadata not supported')
+                raise error.Abort(_('cadata not supported'))
 
             self._cacerts = cafile
 
         def set_ciphers(self, ciphers):
             if not self._supportsciphers:
-                raise error.Abort('setting ciphers not supported')
+                raise error.Abort(_('setting ciphers not supported'))
 
             self._ciphers = ciphers
 
@@ -229,7 +229,7 @@
       to use.
     """
     if not serverhostname:
-        raise error.Abort('serverhostname argument is required')
+        raise error.Abort(_('serverhostname argument is required'))
 
     settings = _hostsettings(ui, serverhostname)