Add error handling for ExecuteAllChanges to improve robustness

This commit is contained in:
Raphire
2026-03-23 20:47:46 +01:00
parent b0125ddcd2
commit e9bccccc09

View File

@@ -468,9 +468,17 @@ if (($controlParamsCount -eq $script:Params.Keys.Count) -or ($script:Params.Keys
AwaitKeyToExit
}
try {
# Execute all selected/provided parameters using the consolidated function
# (This also handles restore point creation if requested)
ExecuteAllChanges
}
catch {
Write-Error "An error occurred while applying changes: $_"
AwaitKeyToExit
}
RestartExplorer