mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-22 07:36:25 +00:00
Improve GUI error messaging
This commit is contained in:
+3
-2
@@ -561,10 +561,11 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
||||
Exit
|
||||
}
|
||||
catch {
|
||||
Write-Warning "Unable to load WPF GUI (not supported in this environment), falling back to CLI mode"
|
||||
Write-Warning "The graphical interface could not start: $($_.Exception.Message)"
|
||||
Write-Verbose "GUI Failure details: $($_.Exception.ToString())"
|
||||
if (-not $Silent) {
|
||||
Write-Host ""
|
||||
Write-Host "Press any key to continue..."
|
||||
Write-Host "Press any key to continue in CLI mode..."
|
||||
$null = [System.Console]::ReadKey()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user