mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-08 11:25:28 +00:00
fix window closing on error (#7756)
This commit is contained in:
@@ -333,6 +333,8 @@ if (Test-ZapretServiceConflict) {
|
|||||||
if ($hasErrors) {
|
if ($hasErrors) {
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "Fix the errors above and rerun." -ForegroundColor Yellow
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -480,6 +482,8 @@ Write-Host "[WARNING] Tests may take several minutes to complete. Please wait...
|
|||||||
# Ensure we have configs to run
|
# Ensure we have configs to run
|
||||||
if (-not $batFiles -or $batFiles.Count -eq 0) {
|
if (-not $batFiles -or $batFiles.Count -eq 0) {
|
||||||
Write-Host "[ERROR] No general*.bat files found" -ForegroundColor Red
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user