Skip to content

Commit f2da909

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
add comment on trap
1 parent 79a03d6 commit f2da909

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wmi-adapter/wmi.resource.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ param(
99
$stdinput
1010
)
1111

12+
# catch any un-caught exception and write it to the error stream
1213
trap {
1314
Write-Trace -Level Error -message $_.Exception.Message
1415
exit 1

0 commit comments

Comments
 (0)