Skip to content

Commit 250999e

Browse files
ENGCOM-8783: Catch php syntax errors (or other errors) in bin/magento and output the error instead of staying silent #32145
2 parents 877b467 + cea08e3 commit 250999e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/magento

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ try {
2121
set_error_handler([$handler, 'handler']);
2222
$application = new Magento\Framework\Console\Cli('Magento CLI');
2323
$application->run();
24-
} catch (\Exception $e) {
24+
} catch (\Throwable $e) {
2525
while ($e) {
2626
echo $e->getMessage();
2727
echo $e->getTraceAsString();

0 commit comments

Comments
 (0)