Mercurial > hg
diff mercurial/chgserver.py @ 45885:600aec73f309
errors: format "abort: " text in a new Abort.format() method
This remove some duplication we had.
Differential Revision: https://phab.mercurial-scm.org/D9348
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 20 Nov 2020 09:17:38 -0800 |
parents | 98399dd1b96c |
children | 7eb221b9af6c |
line wrap: on
line diff
--- a/mercurial/chgserver.py Fri Nov 20 08:51:45 2020 -0800 +++ b/mercurial/chgserver.py Fri Nov 20 09:17:38 2020 -0800 @@ -512,9 +512,7 @@ self.cresult.write(b'exit 255') return except error.Abort as inst: - self.ui.error(_(b"abort: %s\n") % inst.message) - if inst.hint: - self.ui.error(_(b"(%s)\n") % inst.hint) + self.ui.error(inst.format()) self.ui.flush() self.cresult.write(b'exit 255') return