mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user