From a70939d4b893585c5e1709128e997dda7a77c941 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 20 May 2010 10:56:56 +0200 Subject: [PATCH] added line number in exception --- 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 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()); } } } -- 1.7.2.5