8000 FrameworkBundle: catch Throwable · symfony/symfony@efcd9f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit efcd9f8

Browse files
committed
FrameworkBundle: catch Throwable
1 parent 3b6b9aa commit efcd9f8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
148148
} catch (\Exception $e) {
149149
$exitCode = 1;
150150
$rows[] = array(sprintf('<fg=red;options=bold>%s</>', '\\' === DIRECTORY_SEPARATOR ? 'ERROR' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */), $message, $e->getMessage());
151+
} catch (\Throwable $e) {
152+
$exitCode = 1;
153+
$rows[] = array(sprintf('<fg=red;options=bold>%s</>', '\\' === DIRECTORY_SEPARATOR ? 'ERROR' : "\xE2\x9C\x98" /* HEAVY BALLOT X (U+2718) */), $message, $e->getMessage());
151154
}
152155
}
153156

src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public function load($resource, $type = null)
9797
$controller = $this->parser->parse($controller);
9898
} catch (\Exception $e) {
9999
// unable to optimize unknown notation
100+
} catch (\Throwable $e) {
101+
// unable to optimize unknown notation
100102
}
101103

102104
$route->setDefault('_controller', $controller);

0 commit comments

Comments
 (0)
0