mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 23:35:40 +08:00
Enhance exception handling by binding builder and extra info to ExceptionHandler
This commit is contained in:
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
namespace SPC\command;
|
||||
|
||||
use SPC\builder\BuilderProvider;
|
||||
use SPC\exception\SPCException;
|
||||
use SPC\exception\ExceptionHandler;
|
||||
use SPC\store\Config;
|
||||
use SPC\store\FileSystem;
|
||||
use SPC\store\SourcePatcher;
|
||||
@@ -165,8 +165,9 @@ class BuildPHPCommand extends BuildCommand
|
||||
}
|
||||
$this->printFormatInfo($this->getDefinedEnvs(), true);
|
||||
$this->printFormatInfo($indent_texts);
|
||||
// bind extra info to SPCException
|
||||
SPCException::bindBuildPHPExtraInfo($indent_texts);
|
||||
|
||||
// bind extra info to exception handler
|
||||
ExceptionHandler::$bind_build_php_extra_info = $indent_texts;
|
||||
|
||||
logger()->notice('Build will start after 2s ...');
|
||||
sleep(2);
|
||||
|
||||
Reference in New Issue
Block a user