##// END OF EJS Templates
py3: force bytestr conversion of "reason" in scmutil.callcatch()...
Denis Laxalde -
r44774:b4c82b70 5.2.2 stable
parent child Browse files
Show More
@@ -262,7 +262,7 b' def callcatch(ui, func):'
262 if isinstance(reason, pycompat.unicode):
262 if isinstance(reason, pycompat.unicode):
263 # SSLError of Python 2.7.9 contains a unicode
263 # SSLError of Python 2.7.9 contains a unicode
264 reason = encoding.unitolocal(reason)
264 reason = encoding.unitolocal(reason)
265 ui.error(_(b"abort: error: %s\n") % reason)
265 ui.error(_(b"abort: error: %s\n") % stringutil.forcebytestr(reason))
266 elif (
266 elif (
267 util.safehasattr(inst, b"args")
267 util.safehasattr(inst, b"args")
268 and inst.args
268 and inst.args
@@ -614,6 +614,12 b' No local source'
614 abort: repository a not found!
614 abort: repository a not found!
615 [255]
615 [255]
616
616
617 Invalid URL
618
619 $ hg clone http://invalid:url/a b
620 abort: error: nonnumeric port: 'url'
621 [255]
622
617 No remote source
623 No remote source
618
624
619 #if windows
625 #if windows
General Comments 0
You need to be logged in to leave comments. Login now