##// END OF EJS Templates
sslutil: some more forcebytes() on some exception messages...
Augie Fackler -
r36762:4c71a26a default
parent child Browse files
Show More
@@ -346,8 +346,9 b' def wrapsocket(sock, keyfile, certfile, '
346
346
347 for f in (keyfile, certfile):
347 for f in (keyfile, certfile):
348 if f and not os.path.exists(f):
348 if f and not os.path.exists(f):
349 raise error.Abort(_('certificate file (%s) does not exist; '
349 raise error.Abort(
350 'cannot connect to %s') % (f, serverhostname),
350 _('certificate file (%s) does not exist; cannot connect to %s')
351 % (f, pycompat.bytesurl(serverhostname)),
351 hint=_('restore missing file or fix references '
352 hint=_('restore missing file or fix references '
352 'in Mercurial config'))
353 'in Mercurial config'))
353
354
@@ -372,7 +373,8 b' def wrapsocket(sock, keyfile, certfile, '
372 try:
373 try:
373 sslcontext.set_ciphers(pycompat.sysstr(settings['ciphers']))
374 sslcontext.set_ciphers(pycompat.sysstr(settings['ciphers']))
374 except ssl.SSLError as e:
375 except ssl.SSLError as e:
375 raise error.Abort(_('could not set ciphers: %s') % e.args[0],
376 raise error.Abort(
377 _('could not set ciphers: %s') % util.forcebytestr(e.args[0]),
376 hint=_('change cipher string (%s) in config') %
378 hint=_('change cipher string (%s) in config') %
377 settings['ciphers'])
379 settings['ciphers'])
378
380
General Comments 0
You need to be logged in to leave comments. Login now