From 621a501d033186982753863e60995dbc6298ad5b Mon Sep 17 00:00:00 2001 From: FlowersOfMind Date: Thu, 25 Dec 2025 15:42:15 +0300 Subject: [PATCH] fix window closing on error (#7756) --- utils/test zapret.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/test zapret.ps1 b/utils/test zapret.ps1 index bfa1161..48eb77f 100644 --- a/utils/test zapret.ps1 +++ b/utils/test zapret.ps1 @@ -333,6 +333,8 @@ if (Test-ZapretServiceConflict) { if ($hasErrors) { Write-Host "" Write-Host "Fix the errors above and rerun." -ForegroundColor Yellow + Write-Host "Press any key to exit..." -ForegroundColor Yellow + [void][System.Console]::ReadKey($true) exit 1 } @@ -480,6 +482,8 @@ Write-Host "[WARNING] Tests may take several minutes to complete. Please wait... # Ensure we have configs to run if (-not $batFiles -or $batFiles.Count -eq 0) { Write-Host "[ERROR] No general*.bat files found" -ForegroundColor Red + Write-Host "Press any key to exit..." -ForegroundColor Yellow + [void][System.Console]::ReadKey($true) exit 1 }