From f2da90972f73404627d29ae3e419af9caffd0a0c Mon Sep 17 00:00:00 2001 From: "Steve Lee (POWERSHELL HE/HIM) (from Dev Box)" Date: Tue, 17 Sep 2024 13:10:44 -0700 Subject: [PATCH] add comment on trap --- wmi-adapter/wmi.resource.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/wmi-adapter/wmi.resource.ps1 b/wmi-adapter/wmi.resource.ps1 index 1bedc227..908e987c 100644 --- a/wmi-adapter/wmi.resource.ps1 +++ b/wmi-adapter/wmi.resource.ps1 @@ -9,6 +9,7 @@ param( $stdinput ) +# catch any un-caught exception and write it to the error stream trap { Write-Trace -Level Error -message $_.Exception.Message exit 1