made unexpected token exception more verbose

git-svn-id: http://svn.twig-project.org/trunk@158 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-12-13 08:12:07 +00:00
parent 0ec9bc8892
commit 69de38fb5c
+1 -1
View File
@@ -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)