From 0c2be1aaeae3668b6d0ce301928100801d9ac33f Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Fri, 21 Aug 2026 21:55:14 +0200 Subject: [PATCH 1/2] fix: improve error reporting when fetching files from GitHub --- Scripts/Get.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 9d088d41..9a3bdb4d 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -134,7 +134,8 @@ try { Invoke-RestMethod $sourceUri -OutFile $tempArchivePath } 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 "$_" Write-Output "" Write-Output "Press enter to exit..." Read-Host | Out-Null From f7e28f93c0d896b66517f3dbdbd0cbed2f7d9eb1 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Fri, 21 Aug 2026 22:12:58 +0200 Subject: [PATCH 2/2] Write error as object to retain metadata --- Scripts/Get.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 9a3bdb4d..b313f314 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -135,7 +135,7 @@ try { } catch { Write-Host "Unable to fetch required files from GitHub. Please check your internet connection and try again." -ForegroundColor Red - Write-Error "$_" + Write-Error -ErrorRecord $_ Write-Output "" Write-Output "Press enter to exit..." Read-Host | Out-Null