Mercurial > public > mercurial-scm > hg-stable
diff mercurial/chgserver.py @ 45902:7eb221b9af6c
errors: make ParseError a subtype of Abort
I didn't plan this before, but the previous two changes made it really
easy to make `ParseError` a subtype of `Abort`. It seems obvious with
hindsight that I *should* have planned it :)
Differential Revision: https://phab.mercurial-scm.org/D9350
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 19 Nov 2020 15:13:39 -0800 |
parents | 600aec73f309 |
children | aab70f05d6ec |
line wrap: on
line diff
--- a/mercurial/chgserver.py Fri Nov 20 13:24:45 2020 -0800 +++ b/mercurial/chgserver.py Thu Nov 19 15:13:39 2020 -0800 @@ -506,11 +506,6 @@ args = self._readlist() try: self.ui, lui = _loadnewui(self.ui, args, self.cdebug) - except error.ParseError as inst: - self.ui.warn(inst.format()) - self.ui.flush() - self.cresult.write(b'exit 255') - return except error.Abort as inst: self.ui.error(inst.format()) self.ui.flush()