diff mercurial/chgserver.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 a17454a189d1
children b56feaa9b520
line wrap: on
line diff
--- a/mercurial/chgserver.py	Thu Oct 08 15:35:44 2020 -0700
+++ b/mercurial/chgserver.py	Thu Oct 08 13:37:31 2020 -0700
@@ -502,7 +502,7 @@
             self.cresult.write(b'exit 255')
             return
         except error.Abort as inst:
-            self.ui.error(_(b"abort: %s\n") % inst)
+            self.ui.error(_(b"abort: %s\n") % inst.message)
             if inst.hint:
                 self.ui.error(_(b"(%s)\n") % inst.hint)
             self.ui.flush()