Mercurial > hg
diff tests/test-template-map.t @ 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 | ed84a4d48910 |
children | b2a743c3abbb |
line wrap: on
line diff
--- a/tests/test-template-map.t Fri Nov 20 14:43:21 2020 -0800 +++ b/tests/test-template-map.t Mon Nov 16 16:00:50 2020 -0800 @@ -1242,7 +1242,7 @@ hg: parse error at 6: not a prefix: ) (json(-) ^ here) - [255] + [10] For backward compatibility, the following examples are not parsed as function-style references: @@ -1301,7 +1301,7 @@ $ echo 'changeset =' > t $ hg log --style t hg: parse error at t:1: missing value - [255] + [10] Error if include fails: