From 06036ea6840af947233fa126eefb60568529b895 Mon Sep 17 00:00:00 2001 From: Andy Li <1450947+andy1li@users.noreply.github.com> Date: Mon, 20 Apr 2026 10:05:31 +0900 Subject: [PATCH] Improve error messages in installation scripts to clarify download failures, indicating potential unsupported platforms or network issues. --- install.ps1 | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 681f1a4..eee9b2b 100644 --- a/install.ps1 +++ b/install.ps1 @@ -34,7 +34,7 @@ try { try { Invoke-WebRequest -Uri $DownloadUrl -OutFile $TarGzPath -UseBasicParsing } catch { - Write-Host "error: your platform and architecture (windows-$Arch) is unsupported." + Write-Host "error: failed to download binary. This may be due to an unsupported platform (windows-$Arch) or a network issue." exit 1 } diff --git a/install.sh b/install.sh index 40f7337..803b76c 100644 --- a/install.sh +++ b/install.sh @@ -69,7 +69,7 @@ echo -e "${MUTED}" # Muted progress bar HTTP_CODE=$(curl -SL --progress-bar "$DOWNLOAD_URL" --output "$TEMP_FILE" --write-out "%{http_code}") if [ "$HTTP_CODE" -lt 200 ] || [ "$HTTP_CODE" -gt 299 ]; then echo -e "${NC}" - echo "error: your platform and architecture (${PLATFORM}-${ARCH}) is unsupported." + echo "error: failed to download binary (HTTP $HTTP_CODE). This may be due to an unsupported platform (${PLATFORM}-${ARCH}) or a network issue." exit 1 fi