fix(appx): expose swallowed exceptions during Appx Package uninstallation via Write-Verbose (#617)

Co-authored-by: Jeffrey <9938813+Raphire@users.noreply.github.com>
This commit is contained in:
HetCreep
2026-06-10 21:43:37 +07:00
committed by GitHub
parent db24865051
commit 53ca51dffd

View File

@@ -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): $_"
}
}