projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3cf3573
)
added missing debug info when using traits
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 5 Jun 2011 10:12:05 +0000 (12:12 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 5 Jun 2011 10:12:05 +0000 (12:12 +0200)
lib/Twig/Node/Module.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Node/Module.php
b/lib/Twig/Node/Module.php
index
808cf6b
..
1af7622
100644
(file)
--- 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 \"'.")