2 kinds of terminating errors

Welcome Forums General PowerShell Q&A 2 kinds of terminating errors

This topic contains 2 replies, has 3 voices, and was last updated by

1 month, 3 weeks ago.

  • Author
  • #172573

    Topics: 24
    Replies: 688
    Points: 1,690
    Helping Hand
    Rank: Community Hero

    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

  • #172588

    Topics: 2
    Replies: 496
    Points: 1,221
    Helping Hand
    Rank: Community Hero

    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.

  • #172591

    Topics: 0
    Replies: 105
    Points: 384
    Helping Hand
    Rank: Contributor

    I agree with Joel on this.

You must be logged in to reply to this topic.