##// END OF EJS Templates
dispatch: convert exception payload to bytes more carefully...
Augie Fackler -
r32620:3ce53a49 default
parent child Browse files
Show More
@@ -319,7 +319,8 b' def _callcatch(ui, func):'
319 except error.CommandError as inst:
319 except error.CommandError as inst:
320 if inst.args[0]:
320 if inst.args[0]:
321 ui.pager('help')
321 ui.pager('help')
322 ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1]))
322 msgbytes = pycompat.bytestr(inst.args[1])
323 ui.warn(_("hg %s: %s\n") % (inst.args[0], msgbytes))
323 commands.help_(ui, inst.args[0], full=False, command=True)
324 commands.help_(ui, inst.args[0], full=False, command=True)
324 else:
325 else:
325 ui.pager('help')
326 ui.pager('help')
General Comments 0
You need to be logged in to leave comments. Login now