Mercurial > public > mercurial-scm > hg-stable
diff tests/test-template-basic.t @ 40662:ff8b2886c492
templater: check invalid use of list expression properly (issue5920)
The error message is still cryptic, but it should be better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 13 Nov 2018 22:15:30 +0900 |
parents | b4cfd803b3f2 |
children | e48fdeb08c77 |
line wrap: on
line diff
--- a/tests/test-template-basic.t Tue Nov 13 18:08:55 2018 +0300 +++ b/tests/test-template-basic.t Tue Nov 13 22:15:30 2018 +0900 @@ -188,7 +188,8 @@ $ hg debugtemplate '{" "|separate}' $ hg debugtemplate '{("not", "an", "argument", "list")|separate}' - hg: parse error: unknown method 'list' + hg: parse error: can't use a list in this context + (check place of comma and parens) [255] Second branch starting at nullrev: