Skip to content

Commit

Permalink
Catch php syntax errors (or other errors) in bin/magento and output t…
Browse files Browse the repository at this point in the history
…he error instead of staying silent.
  • Loading branch information
hostep committed Feb 12, 2021
1 parent 2b943ed commit 197f142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/magento
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ try {
set_error_handler([$handler, 'handler']);
$application = new Magento\Framework\Console\Cli('Magento CLI');
$application->run();
} catch (\Exception $e) {
} catch (\Throwable $e) {
while ($e) {
echo $e->getMessage();
echo $e->getTraceAsString();
Expand Down

0 comments on commit 197f142

Please sign in to comment.