diff mercurial/debugcommands.py @ 36522:6e90c59b6da1

py3: use pycompat.bytestr() to convert error instances to bytes Differential Revision: https://phab.mercurial-scm.org/D2516
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 01 Mar 2018 23:54:52 +0530
parents 580f75f70f39
children 44dc34b8d17b
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Thu Mar 01 23:52:30 2018 +0530
+++ b/mercurial/debugcommands.py	Thu Mar 01 23:54:52 2018 +0530
@@ -1591,7 +1591,8 @@
                                      metadata=metadata, ui=ui)
                 tr.close()
             except ValueError as exc:
-                raise error.Abort(_('bad obsmarker input: %s') % exc)
+                raise error.Abort(_('bad obsmarker input: %s') %
+                                  pycompat.bytestr(exc))
             finally:
                 tr.release()
         finally: