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 |
|
|
352 | hint=_('restore missing file or fix references ' | |
352 |
|
|
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 |
|
|
378 | hint=_('change cipher string (%s) in config') % | |
377 |
|
|
379 | settings['ciphers']) | |
378 |
|
380 |
General Comments 0
You need to be logged in to leave comments.
Login now