mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Refactor exception handler to v3, use standard shell exitcode
This commit is contained in:
6
bin/spc
6
bin/spc
@@ -21,10 +21,8 @@ if (PHP_VERSION_ID < 80400) {
|
||||
try {
|
||||
(new ConsoleApplication())->run();
|
||||
} catch (SPCException $e) {
|
||||
ExceptionHandler::handleSPCException($e);
|
||||
exit(1);
|
||||
exit(ExceptionHandler::handleSPCException($e));
|
||||
} catch (\Throwable $e) {
|
||||
ExceptionHandler::handleDefaultException($e);
|
||||
exit(1);
|
||||
exit(ExceptionHandler::handleDefaultException($e));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user