##// END OF EJS Templates
scmutil: bytes-ify IOErrors before wrapping them in abort message...
Augie Fackler -
r36276:2b00dda6 default
parent child Browse files
Show More
@@ -215,7 +215,7 b' def callcatch(ui, func):'
215 ui.warn(_("(is your Python install correct?)\n"))
215 ui.warn(_("(is your Python install correct?)\n"))
216 except IOError as inst:
216 except IOError as inst:
217 if util.safehasattr(inst, "code"):
217 if util.safehasattr(inst, "code"):
218 ui.warn(_("abort: %s\n") % inst)
218 ui.warn(_("abort: %s\n") % util.forcebytestr(inst))
219 elif util.safehasattr(inst, "reason"):
219 elif util.safehasattr(inst, "reason"):
220 try: # usually it is in the form (errno, strerror)
220 try: # usually it is in the form (errno, strerror)
221 reason = inst.reason.args[1]
221 reason = inst.reason.args[1]
General Comments 0
You need to be logged in to leave comments. Login now