From 25fb9f37251025cad07ac26d3c89a6c6bd28551a Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Wed, 12 Aug 2026 16:38:14 +0200 Subject: [PATCH] Improve GUI error messaging --- Win11Debloat.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 110192e..5bc6cd4 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -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() }