[TwigBundle] added correct file name in twig:lint exception reporting
This commit is contained in:
parent
57c6aaa397
commit
a11ec3e71c
@ -90,8 +90,8 @@ EOF
|
||||
foreach ($files as $file) {
|
||||
try {
|
||||
$twig->parse($twig->tokenize(file_get_contents($file)));
|
||||
} catch (\Exception $e) {
|
||||
$output->writeln(sprintf('<error>Syntax error in %s</error>', $file));
|
||||
} catch (\Twig_Error $e) {
|
||||
$e->setTemplateFile((string) $file);
|
||||
|
||||
throw $e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user