From 91e206ae581b2675779ff733fa480ee76ac9a1e5 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 22 Sep 2007 12:19:24 +0200 Subject: [PATCH] fixed typo in parser.py that caused a broken traceback on syntax errors --HG-- branch : trunk --- jinja/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja/parser.py b/jinja/parser.py index 5702f6f..bc2960c 100644 --- a/jinja/parser.py +++ b/jinja/parser.py @@ -1108,7 +1108,7 @@ class Parser(object): assert False, "unexpected token %r" % self.stream.current if test is not None: - msg = isinstance(test, StateTest) and ': ' + test.message or '' + msg = isinstance(test, StateTest) and ': ' + test.msg or '' raise TemplateSyntaxError('unexpected end of stream' + msg, self.stream.lineno, self.filename) -- 2.26.2