From 2be5bc986abc19e1f4dcc224cf45128210e3d279 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 1 Sep 2011 08:06:05 +0200 Subject: [PATCH] tweaked an error message --- 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 d6310e0..9ff315a 100644 --- a/lib/Twig/Parser.php +++ b/lib/Twig/Parser.php @@ -307,7 +307,7 @@ class Twig_Parser implements Twig_ParserInterface || (!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference && $node instanceof Twig_NodeOutputInterface) ) { - throw new Twig_Error_Syntax(sprintf('A template that extends another one cannot have a body (%s).', $node), $node->getLine(), $this->stream->getFilename()); + throw new Twig_Error_Syntax('A template that extends another one cannot have a body.', $node->getLine(), $this->stream->getFilename()); } if ($node instanceof Twig_NodeOutputInterface) { -- 1.7.2.5