Skip to content

Commit

Permalink
add comment on trap
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Lee (POWERSHELL HE/HIM) (from Dev Box) committed Sep 17, 2024
1 parent 79a03d6 commit f2da909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wmi-adapter/wmi.resource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2da909

Please sign in to comment.