From: Fabien Potencier Date: Sun, 5 Jun 2011 10:12:05 +0000 (+0200) Subject: added missing debug info when using traits X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7e457209f8c69865ac2bc8b86c24518cded0dd01;p=web%2Fkonrad%2Ftwig.git added missing debug info when using traits --- diff --git a/lib/Twig/Node/Module.php b/lib/Twig/Node/Module.php index 808cf6b..1af7622 100644 --- a/lib/Twig/Node/Module.php +++ b/lib/Twig/Node/Module.php @@ -136,6 +136,7 @@ class Twig_Node_Module extends Twig_Node $this->compileLoadTemplate($compiler, $trait->getNode('template'), sprintf('$_trait_%s', $i)); $compiler + ->addDebugInfo($trait->getNode('template')) ->write(sprintf("if (!\$_trait_%s->isTraitable()) {\n", $i)) ->indent() ->write("throw new Twig_Error_Runtime('Template \"'.")