From: fabien Date: Sun, 13 Dec 2009 08:12:07 +0000 (+0000) Subject: made unexpected token exception more verbose X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=69de38fb5ced0a8a705dde78055c14c38e8b9d63;p=web%2Fkonrad%2Ftwig.git made unexpected token exception more verbose git-svn-id: http://svn.twig-project.org/trunk@158 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 93ba541..d659045 100644 --- a/lib/Twig/ExpressionParser.php +++ b/lib/Twig/ExpressionParser.php @@ -273,7 +273,7 @@ class Twig_ExpressionParser } else { - throw new Twig_SyntaxError('Unexpected token', $token->getLine()); + throw new Twig_SyntaxError(sprintf('Unexpected token "%s"', $token->getValue()), $token->getLine()); } } if (!$assignment)