Improve GUI error messaging

This commit is contained in:
Jeffrey
2026-08-12 16:38:14 +02:00
parent d1338cd027
commit 25fb9f3725
+3 -2
View File
@@ -561,10 +561,11 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
Exit Exit
} }
catch { 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) { if (-not $Silent) {
Write-Host "" Write-Host ""
Write-Host "Press any key to continue..." Write-Host "Press any key to continue in CLI mode..."
$null = [System.Console]::ReadKey() $null = [System.Console]::ReadKey()
} }