From 84135b0acbc6da7e27f4f868cd8250598e38168b Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Tue, 2 Jun 2026 14:01:41 -0700 Subject: [PATCH] Minor fixes to PSScript resource --- resources/PSScript/psscript.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/PSScript/psscript.ps1 b/resources/PSScript/psscript.ps1 index e3d562abb..9af44c38b 100644 --- a/resources/PSScript/psscript.ps1 +++ b/resources/PSScript/psscript.ps1 @@ -154,6 +154,7 @@ try { "Script failed with terminating error: $($ps.InvocationStateInfo.Reason)" } Write-DscTrace -Now -Level Error -Message $message + Write-TraceQueue exit 1 } @@ -162,7 +163,6 @@ try { if ($ps.HadErrors) { - # Errors can be non-terminating, so we just write a warning and continue Write-DscTrace -Now -Level Debug -Message 'Non-terminating errors occurred during script execution.' }