From 438bc40c872f3886e6c3f2b8d30669705f155e99 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 28 May 2010 12:56:32 +0200 Subject: [PATCH] tweaked an error message --- lib/Twig/ExpressionParser.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 1152706..c77f534 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -276,7 +276,7 @@ class Twig_ExpressionParser $node = $this->parseExpression(); $this->parser->getStream()->expect(Twig_Token::OPERATOR_TYPE, ')'); } else { - throw new Twig_SyntaxError(sprintf('Unexpected token "%s"', $token->getValue()), $token->getLine()); + throw new Twig_SyntaxError(sprintf('Unexpected token "%s" of value "%s"', Twig_Token::getTypeAsString($token->getType()), $token->getValue()), $token->getLine()); } } if (!$assignment) { -- 1.7.2.5