Mercurial > public > mercurial-scm > hg
diff mercurial/scmutil.py @ 47295:dd339191f2dc
errors: make StorageError subclass Error, attaching an exit code to it
Differential Revision: https://phab.mercurial-scm.org/D10741
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 18 May 2021 21:50:09 -0700 |
parents | 7a769ac49637 |
children | 0f5c203eb5ab |
line wrap: on
line diff
--- a/mercurial/scmutil.py Tue May 18 19:33:09 2021 -0700 +++ b/mercurial/scmutil.py Tue May 18 21:50:09 2021 -0700 @@ -198,11 +198,6 @@ ui.error(b"\n%r\n" % pycompat.bytestr(stringutil.ellipsis(msg))) except error.CensoredNodeError as inst: ui.error(_(b"abort: file censored %s\n") % inst) - except error.StorageError as inst: - ui.error(_(b"abort: %s\n") % inst) - if inst.hint: - ui.error(_(b"(%s)\n") % inst.hint) - detailed_exit_code = 50 except error.WdirUnsupported: ui.error(_(b"abort: working directory revision cannot be specified\n")) except error.Error as inst: