From 178fc0185fd1b6c2e607dfe64356868451fc6a5a Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Mon, 18 May 2026 21:57:42 +0200 Subject: [PATCH] Replace throw with Write-Warning for unload registry hive error in ImportRegistryFile function --- Scripts/Features/ImportRegistryFile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Features/ImportRegistryFile.ps1 b/Scripts/Features/ImportRegistryFile.ps1 index bf91aac..99aff39 100644 --- a/Scripts/Features/ImportRegistryFile.ps1 +++ b/Scripts/Features/ImportRegistryFile.ps1 @@ -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)" } } }