tweaked an error message

This commit is contained in:
Fabien Potencier
2011-09-01 08:06:05 +02:00
parent 598c70ba39
commit 2be5bc986a
+1 -1
View File
@@ -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) {