mercurial/dispatch.py
changeset 32643 3ce53a499334
parent 32599 1b90036f42f0
child 32674 9929af2b09b4
--- a/mercurial/dispatch.py	Sun May 28 15:49:29 2017 -0400
+++ b/mercurial/dispatch.py	Sun May 28 15:47:00 2017 -0400
@@ -319,7 +319,8 @@
     except error.CommandError as inst:
         if inst.args[0]:
             ui.pager('help')
-            ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1]))
+            msgbytes = pycompat.bytestr(inst.args[1])
+            ui.warn(_("hg %s: %s\n") % (inst.args[0], msgbytes))
             commands.help_(ui, inst.args[0], full=False, command=True)
         else:
             ui.pager('help')