diff mercurial/dispatch.py @ 45682:d2e1dcd4490d

errors: name arguments to Abort constructor Differential Revision: https://phab.mercurial-scm.org/D9179
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 08 Oct 2020 13:37:31 -0700
parents bb1a988ef4a5
children 0fc8b066928a
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu Oct 08 15:35:44 2020 -0700
+++ b/mercurial/dispatch.py	Thu Oct 08 13:37:31 2020 -0700
@@ -288,7 +288,7 @@
             if req.fmsg:
                 req.ui.fmsg = req.fmsg
         except error.Abort as inst:
-            ferr.write(_(b"abort: %s\n") % inst)
+            ferr.write(_(b"abort: %s\n") % inst.message)
             if inst.hint:
                 ferr.write(_(b"(%s)\n") % inst.hint)
             return -1