PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
58 stars 14 forks source link

Change ErrorAction to Ignore so that the error doesn't show up in $Error #93

Closed SteveL-MSFT closed 1 year ago

SteveL-MSFT commented 1 year ago

PR Summary

Previously it was setting -ErrorAction to SilentlyContinue which on failure will still put the error onto $Error and this can confuse users who check on $Error to see if any error occurred. Since the intent is to ignore the error, the right value to use is Ignore.