From: Fabien Potencier Date: Thu, 20 May 2010 08:56:56 +0000 (+0200) Subject: added line number in exception X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=a70939d4b893585c5e1709128e997dda7a77c941;p=web%2Fkonrad%2Ftwig.git added line number in exception --- diff --git a/lib/Twig/Parser.php b/lib/Twig/Parser.php index 756b7af..6d431ab 100644 --- a/lib/Twig/Parser.php +++ b/lib/Twig/Parser.php @@ -89,7 +89,7 @@ class Twig_Parser || (!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference) ) { - throw new Twig_SyntaxError('A template that extends another one cannot have a body', 0); + throw new Twig_SyntaxError('A template that extends another one cannot have a body', $node->getLine()); } } }