Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Try/Catch and ErrorAction

$
0
0

Mainly when you’re running a command against a single input object, instead of passing in multiples (via the pipeline or an array). In that case, there’s no point in having any distinction between a terminating and non/terminating error anyway, so you may as well force them all to be terminating so you can use try/catch.


Viewing all articles
Browse latest Browse all 13067

Trending Articles