From ab2a9ac459943c1a974fdf7a601400a84b0eaac4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 26 Nov 2010 21:13:26 +0100 Subject: [PATCH] added more information to an exception to ease debugging --- lib/Twig/Parser.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Parser.php b/lib/Twig/Parser.php index acc17e6..8ae97cd 100644 --- a/lib/Twig/Parser.php +++ b/lib/Twig/Parser.php @@ -220,7 +220,7 @@ class Twig_Parser implements Twig_ParserInterface || (!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference && !$node instanceof Twig_Node_Import) ) { - throw new Twig_Error_Syntax('A template that extends another one cannot have a body', $node->getLine(), $this->stream->getFilename()); + throw new Twig_Error_Syntax(sprintf('A template that extends another one cannot have a body (%s).', $node), $node->getLine(), $this->stream->getFilename()); } } } -- 1.7.2.5