Fix: pause on error instead of closing PowerShell window

Replace exit 1 with Read-Host + return so users can read
the error message before the window closes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Rick Mu
2026-02-13 18:53:35 +11:00
parent 40983ec0ee
commit cde26a8f7f
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ $ErrorActionPreference = "Stop"
function Write-Info($msg) { Write-Host "[INFO] $msg" -ForegroundColor Cyan }
function Write-Ok($msg) { Write-Host "[DONE] $msg" -ForegroundColor Green }
function Write-Warn($msg) { Write-Host "[WARN] $msg" -ForegroundColor Yellow }
function Write-Err($msg) { Write-Host "[ERROR] $msg" -ForegroundColor Red; exit 1 }
function Write-Err($msg) { Write-Host "[ERROR] $msg" -ForegroundColor Red; Read-Host "Press Enter to exit"; return }
function Write-Header {
Write-Host ""