Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.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 | 10284ce3d5ed |
children | 508dfd1c18df |
line wrap: on
line diff
--- a/mercurial/scmutil.py Thu Oct 08 15:35:44 2020 -0700 +++ b/mercurial/scmutil.py Thu Oct 08 13:37:31 2020 -0700 @@ -216,7 +216,7 @@ except error.WdirUnsupported: ui.error(_(b"abort: working directory revision cannot be specified\n")) except error.Abort as inst: - ui.error(_(b"abort: %s\n") % inst) + ui.error(_(b"abort: %s\n") % inst.message) if inst.hint: ui.error(_(b"(%s)\n") % inst.hint) except ImportError as inst: