Mercurial > hg
diff mercurial/scmutil.py @ 45895:fc4fb2f17dd4
errors: use exit code 10 for parse errors
Now that `ParseError`s raised while reading the config file has been
converted into `ConfigError`s, the remaining parse errors should all
be "input errors" (i.e. exit code 10), according to
https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan.
Differential Revision: https://phab.mercurial-scm.org/D9332
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 16 Nov 2020 16:00:50 -0800 |
parents | 600aec73f309 |
children | 95c4cca641f6 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Fri Nov 20 14:43:21 2020 -0800 +++ b/mercurial/scmutil.py Mon Nov 16 16:00:50 2020 -0800 @@ -222,7 +222,7 @@ except error.WdirUnsupported: ui.error(_(b"abort: working directory revision cannot be specified\n")) except error.Abort as inst: - if isinstance(inst, error.InputError): + if isinstance(inst, (error.InputError, error.ParseError)): detailed_exit_code = 10 elif isinstance(inst, error.StateError): detailed_exit_code = 20