Skip to content

Commit cea08e3

Browse files
ENGCOM-8783: Catch php syntax errors (or other errors) in bin/magento and output the error instead of staying silent #32145
- Merge Pull Request #32145 from hostep/magento2:magento-executable-should-catch-all-errors - Merged commits: 1. 197f142
2 parents 4898eb4 + 197f142 commit cea08e3

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)