Skip to content

Remove [System.Exception] from try snippets. #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

rkeithhill
Copy link
Contributor

After long discussion on PSMVP alias it seems that there's a bug with catch [System.Exception]. If there are two catch statements and the "general" case uses "catch [System.Exception" instead of "catch" the general case will run instead of the more specific exception!! That's pretty mind blowing. Fix #296

After long discussion on PSMVP alias it seems that there's a bug with catch [System.Exception].  If there are two catch statements and the "general" case uses "catch [System.Exception" instead of "catch" the general case will run instead of the more specific exception!!  That's pretty mind blowing. Fix PowerShell#296
@rkeithhill rkeithhill merged commit 0602b33 into PowerShell:master Sep 17, 2016
@rkeithhill rkeithhill deleted the rkeithhill/remove-exc-from-try-snippet branch September 17, 2016 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants