From 69de38fb5ced0a8a705dde78055c14c38e8b9d63 Mon Sep 17 00:00:00 2001 From: fabien Date: Sun, 13 Dec 2009 08:12:07 +0000 Subject: [PATCH] made unexpected token exception more verbose git-svn-id: http://svn.twig-project.org/trunk@158 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- 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 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) -- 1.7.2.5