fixed error filename/line when an error occurs in an included file
authorFabien Potencier <fabien.potencier@gmail.com>
Sun, 27 Oct 2013 13:47:59 +0000 (14:47 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Sun, 27 Oct 2013 18:42:31 +0000 (19:42 +0100)
commit1cdc913f4ce063caff1242a2593af0de507ae41c
tree6bbeb007ed939c116c5e4308ad5ed92363863a40
parentde985a872f0185c248fc73c1e738a8d40d7b682d
fixed error filename/line when an error occurs in an included file

To be able to cover all cases, we need to catch the exception when we
know the execution context (the block being rendered). The only
possibility is to actually try/catch exceptions in the displayBlock()
method directly.
CHANGELOG
lib/Twig/Template.php