py3: convert error instances to bytes using pycompat.bytestr()
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 18 Jun 2018 15:28:18 +0530
changeset 38372 4a6d01b49d91
parent 38371 bf953d218a91
child 38373 e033fd788bf8
py3: convert error instances to bytes using pycompat.bytestr() Differential Revision: https://phab.mercurial-scm.org/D3788
hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Mon Jun 18 15:27:34 2018 +0530
+++ b/hgext/convert/convcmd.py	Mon Jun 18 15:28:18 2018 +0530
@@ -123,7 +123,7 @@
             exceptions.append(inst)
     if not ui.quiet:
         for inst in exceptions:
-            ui.write("%s\n" % inst)
+            ui.write("%s\n" % pycompat.bytestr(inst))
     raise error.Abort(_('%s: missing or unsupported repository') % path)
 
 def convertsink(ui, path, type):