projects
/
konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9c253d6
)
added line number in exception
author
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 20 May 2010 08:56:56 +0000 (10:56 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Thu, 20 May 2010 08:56:56 +0000 (10:56 +0200)
lib/Twig/Parser.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Parser.php
b/lib/Twig/Parser.php
index
756b7af
..
6d431ab
100644
(file)
--- a/
lib/Twig/Parser.php
+++ b/
lib/Twig/Parser.php
@@
-89,7
+89,7
@@
class Twig_Parser
||
(!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference)
) {
- throw new Twig_SyntaxError('A template that extends another one cannot have a body', 0);
+ throw new Twig_SyntaxError('A template that extends another one cannot have a body', $node->getLine());
}
}
}