mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Refactor exception handler to v3, use standard shell exitcode
This commit is contained in:
@@ -47,7 +47,7 @@ class ExtractCommand extends BaseCommand
|
||||
$artifact = ArtifactLoader::getArtifactInstance($name);
|
||||
if ($artifact === null) {
|
||||
$this->output->writeln("<error>Artifact '{$name}' not found.</error>");
|
||||
return static::FAILURE;
|
||||
return static::USER_ERROR;
|
||||
}
|
||||
$artifacts[$name] = $artifact;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user