mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +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\DI\ApplicationContext;
|
||||||
use StaticPHP\Exception\DownloaderException;
|
use StaticPHP\Exception\DownloaderException;
|
||||||
use StaticPHP\Exception\ExecutionException;
|
use StaticPHP\Exception\ExecutionException;
|
||||||
use StaticPHP\Exception\SPCException;
|
|
||||||
use StaticPHP\Exception\ValidationException;
|
use StaticPHP\Exception\ValidationException;
|
||||||
use StaticPHP\Exception\WrongUsageException;
|
use StaticPHP\Exception\WrongUsageException;
|
||||||
use StaticPHP\Registry\ArtifactLoader;
|
use StaticPHP\Registry\ArtifactLoader;
|
||||||
@ -316,9 +315,6 @@ class ArtifactDownloader
|
|||||||
InteractiveTerm::success("Downloaded all {$count} artifacts.{$skip_msg}\n", true);
|
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 {
|
} finally {
|
||||||
if ($interactive) {
|
if ($interactive) {
|
||||||
Shell::passthruCallback(null);
|
Shell::passthruCallback(null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user