8000 TwigBundle: catch Throwable · symfony/symfony@9df8d50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9df8d50

Browse files
committed
TwigBundle: catch Throwable
1 parent aa4521e commit 9df8d50

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php

Lines changed: 1 addition & 0 deletions
< AF14 thead class="sr-only">
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ protected function findTemplate($template, $throw = true)
8383
$template = $this->parser->parse($template);
8484
$file = $this->locator->locate($template);
8585
} catch (\Exception $e) {
86+
} catch (\Throwable $e) {
8687
}
8788
}
8889

src/Symfony/Bundle/TwigBundle/TwigEngine.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function render($name, array $parameters = array())
7676
// try to get the real file name of the template where the error occurred
7777
$e->setTemplateFile(sprintf('%s', $this->locator->locate($this->parser->parse($e->getTemplateFile()))));
7878
} catch (\Exception $e2) {
79+
} catch (\Throwable $e2) {
7980
}
8081
}
8182

0 commit comments

Comments
 (0)
0