Suggestions

This commit is contained in:
crazywhalecc
2025-07-24 12:00:17 +08:00
parent abd7d3cfb4
commit 52a623f31e
2 changed files with 1 additions and 3 deletions

View File

@@ -250,8 +250,7 @@ class DownloadCommand extends BaseCommand
logger()->warning("No alternative sources found for {$source}, using default alternative source");
$alt_config = array_merge($config, Downloader::getDefaultAlternativeSource($source));
} elseif ($alt_sources === false) {
logger()->error("No alternative sources found for {$source}, skipping alternative download");
throw $e;
throw new DownloaderException("No alternative sources found for {$source}, skipping alternative download");
} else {
logger()->notice("Trying to download alternative sources for {$source}");
$alt_config = array_merge($config, $alt_sources);