mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-22 07:36:25 +00:00
fix: improve error reporting when fetching files from GitHub (#753)
This commit is contained in:
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user