added line number in exception
authorFabien Potencier <fabien.potencier@gmail.com>
Thu, 20 May 2010 08:56:56 +0000 (10:56 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 20 May 2010 08:56:56 +0000 (10:56 +0200)
lib/Twig/Parser.php

index 756b7af..6d431ab 100644 (file)
@@ -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());
                 }
             }
         }