mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-05-19 12:16:17 +00:00
Replace throw with Write-Warning for unload registry hive error in ImportRegistryFile function
This commit is contained in:
@@ -111,7 +111,7 @@ function ImportRegistryFile {
|
||||
$unloadExitCode = $LASTEXITCODE
|
||||
|
||||
if ($unloadExitCode -ne 0) {
|
||||
throw "Failed to unload registry hive HKU\Default after importing '$path' (exit code: $unloadExitCode)"
|
||||
Write-Warning "Failed to unload registry hive HKU\Default after importing '$path' (exit code: $unloadExitCode)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user