mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Remove redundant catch for downloader
This commit is contained in:
parent
2fdb0b406f
commit
059f785e0d
@ -14,7 +14,6 @@ use StaticPHP\Artifact\Downloader\Type\ValidatorInterface;
|
||||
use StaticPHP\DI\ApplicationContext;
|
||||
use StaticPHP\Exception\DownloaderException;
|
||||
use StaticPHP\Exception\ExecutionException;
|
||||
use StaticPHP\Exception\SPCException;
|
||||
use StaticPHP\Exception\ValidationException;
|
||||
use StaticPHP\Exception\WrongUsageException;
|
||||
use StaticPHP\Registry\ArtifactLoader;
|
||||
@ -316,9 +315,6 @@ class ArtifactDownloader
|
||||
InteractiveTerm::success("Downloaded all {$count} artifacts.{$skip_msg}\n", true);
|
||||
}
|
||||
}
|
||||
} catch (SPCException $e) {
|
||||
array_map(fn ($x) => InteractiveTerm::error($x), explode("\n", $e->getMessage()));
|
||||
throw new WrongUsageException();
|
||||
} finally {
|
||||
if ($interactive) {
|
||||
Shell::passthruCallback(null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user