comparison tests/test-command-template.t @ 21822:028a48105191

templater: add symbol to error This patch makes it easier to debug writing templater functions by telling the user exactly what was sent to the templater.
author Ryan McElroy <rmcelroy@fb.com>
date Thu, 12 Jun 2014 18:07:21 -0700
parents 4a445dc5abff
children 8f23f8096606
comparison
equal deleted inserted replaced
21821:4a445dc5abff 21822:028a48105191
1909 | 1909 |
1910 o 1910 o
1911 | 1911 |
1912 o line 1 1912 o line 1
1913 line 2 1913 line 2
1914
1915 Test bad template with better error message
1916
1917 $ hg log -Gv -R a --template '{desc|user()}'
1918 hg: parse error: expected a symbol, got 'func'
1919 [255]