Skip to content

Commit ccce140

Browse files
committed
Add download link notice
1 parent 950b5be commit ccce140

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ModuleFast.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ function Install-ModuleFastHelper {
462462
Module = $module
463463
DownloadPath = Join-Path $ModuleCache "$($module.Name).$($module.Version).nupkg"
464464
}
465+
Write-Verbose "$module`: Downloading from $($module.DownloadLink)"
466+
if (-not $module.DownloadLink) {
467+
throw "$module`: No Download Link found. This is a bug"
468+
}
465469
$fetchTask = $httpClient.GetStreamAsync($module.DownloadLink, $CancellationToken)
466470
$taskMap.Add($fetchTask, $context)
467471
$fetchTask

0 commit comments

Comments
 (0)