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