From 059f785e0d5d2ab565bd6af5c8336ad3b0473aa2 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 15 Feb 2026 21:57:21 +0800 Subject: [PATCH] Remove redundant catch for downloader --- src/StaticPHP/Artifact/ArtifactDownloader.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/StaticPHP/Artifact/ArtifactDownloader.php b/src/StaticPHP/Artifact/ArtifactDownloader.php index a5eb9b14..fd3caeaf 100644 --- a/src/StaticPHP/Artifact/ArtifactDownloader.php +++ b/src/StaticPHP/Artifact/ArtifactDownloader.php @@ -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);