fix: improve error reporting when fetching files from GitHub (#753)

This commit is contained in:
Jeffrey
2026-08-21 22:15:05 +02:00
committed by GitHub
parent 460eb75e1e
commit 26d2bcb4a6
+2 -1
View File
@@ -134,7 +134,8 @@ try {
Invoke-RestMethod $sourceUri -OutFile $tempArchivePath Invoke-RestMethod $sourceUri -OutFile $tempArchivePath
} }
catch { catch {
Write-Host "Error: Unable to fetch required files from GitHub. Please check your internet connection and try again." -ForegroundColor Red Write-Host "Unable to fetch required files from GitHub. Please check your internet connection and try again." -ForegroundColor Red
Write-Error -ErrorRecord $_
Write-Output "" Write-Output ""
Write-Output "Press enter to exit..." Write-Output "Press enter to exit..."
Read-Host | Out-Null Read-Host | Out-Null