From: Armin Ronacher Date: Sat, 22 Sep 2007 10:19:24 +0000 (+0200) Subject: fixed typo in parser.py that caused a broken traceback on syntax errors X-Git-Tag: 2.0rc1~267 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=91e206ae581b2675779ff733fa480ee76ac9a1e5;p=jinja2.git fixed typo in parser.py that caused a broken traceback on syntax errors --HG-- branch : trunk --- 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)