mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-10 18:46:28 +00:00
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:
@@ -124,10 +124,7 @@ function RemoveApps {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
if ($DebugPreference -ne "SilentlyContinue") {
|
Write-Verbose "Something went wrong while trying to remove $($app): $_"
|
||||||
Write-Host "Something went wrong while trying to remove $app" -ForegroundColor Yellow
|
|
||||||
Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user