Skip to content

Getting exceptions instead of friendly warnings #9383

Answered by MaxGripe
mfsalomons asked this question in Q&A
Discussion options

You must be logged in to vote

Might be a silly idea, but have you tried setting $WarningPreference = 'Stop' (or 'Inquire') before your try and catch block?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mfsalomons
Comment options

Answer selected by mfsalomons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants