Welcome › Forums › General PowerShell Q&A › 2 kinds of terminating errors
This topic contains 2 replies, has 3 voices, and was last updated by
There's 2 kinds of terminating errors now, script and statement ("nonterminating terminating errors")? Ugh, powershell is so weird and hard to know. https://github.com/MicrosoftDocs/PowerShell-Docs/issues/1583
That's a "sort of" from me.
But yeah, error handling is currently a bit messy. I'd love to see it cleaned up and sorted out for PS7, but it doesn't seem like that's super likely at this point in time.
I've found that at least when working with my own code, if I'm consistent in how I throw errors I generally have a better time dealing with it and get the results I expect every time.
I agree with Joel on this.
You must be logged in to reply to this topic.