mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
tweaked an error message
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user