From dd6c65ddb03c66255cec71e0d44ac31ad60d6149 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sun, 17 May 2026 23:20:00 +0200 Subject: [PATCH] Clean up error message --- 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 ee4444a..6a12fc4 100644 --- a/Scripts/Features/ImportRegistryFile.ps1 +++ b/Scripts/Features/ImportRegistryFile.ps1 @@ -127,7 +127,7 @@ function ImportRegistryFile { # Fallback only helps when the import step failed. If load/unload failed, # retrying fallback will hit the same hive-state problem and adds noisy errors. if ($usesOfflineHive -and ($regResult.FailureStage -eq 'load' -or $regResult.FailureStage -eq 'unload')) { - $errorMessage = "Failed importing registry file '$path'. Offline hive $($regResult.FailureStage) failed: $details. Skipping PowerShell fallback because it requires loading the same hive state." + $errorMessage = "Failed importing registry file '$path'. Offline hive $($regResult.FailureStage) failed: $details" Write-Host $errorMessage -ForegroundColor Red Write-Host "" throw $errorMessage