From: Fabien Potencier Date: Thu, 1 Sep 2011 06:06:05 +0000 (+0200) Subject: tweaked an error message X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2be5bc986abc19e1f4dcc224cf45128210e3d279;p=web%2Fkonrad%2Ftwig.git tweaked an error message --- 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) {