mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
[Nostromo] Add Exception Listener for uncaught exceptions in Command, wrap Bin in exception for early errors.
This commit is contained in:
@@ -10,6 +10,11 @@ if (file_exists(__DIR__ . '/../../../autoload.php')) {
|
||||
|
||||
use Mage\MageApplication;
|
||||
|
||||
$mage = new MageApplication();
|
||||
$mage->configure('.mage.yml');
|
||||
$mage->run();
|
||||
try {
|
||||
$mage = new MageApplication();
|
||||
$mage->configure('.mage.yml');
|
||||
$mage->run();
|
||||
} catch (Exception $exception) {
|
||||
printf('Error: %s' . PHP_EOL, $exception->getMessage());
|
||||
exit(9);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user