From 53ca51dffdd7140878a3e61fc6992aadd072a723 Mon Sep 17 00:00:00 2001 From: HetCreep Date: Wed, 10 Jun 2026 21:43:37 +0700 Subject: [PATCH] fix(appx): expose swallowed exceptions during Appx Package uninstallation via Write-Verbose (#617) Co-authored-by: Jeffrey <9938813+Raphire@users.noreply.github.com> --- Scripts/AppRemoval/RemoveApps.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Scripts/AppRemoval/RemoveApps.ps1 b/Scripts/AppRemoval/RemoveApps.ps1 index b365fb4..df350a8 100644 --- a/Scripts/AppRemoval/RemoveApps.ps1 +++ b/Scripts/AppRemoval/RemoveApps.ps1 @@ -124,10 +124,7 @@ function RemoveApps { } } catch { - if ($DebugPreference -ne "SilentlyContinue") { - Write-Host "Something went wrong while trying to remove $app" -ForegroundColor Yellow - Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray - } + Write-Verbose "Something went wrong while trying to remove $($app): $_" } }