OnErrorResumeNext never before have more terrible words been spoken.
Every time I’m reading a PowerShell script at work and see -ErrorAction SilentlyContinue I want to scream into a pillow and forcefully revert their commit.
I’ve actually done it a few times, but I want to do it every time.
And then swallow the error, continue executing the code, and make others wonder why the program printed 40 stack traces but crashed without one.
On Error Resume Next
never before have more terrible words been spoken.Every time I’m reading a PowerShell script at work and see
-ErrorAction SilentlyContinue
I want to scream into a pillow and forcefully revert their commit.I’ve actually done it a few times, but I want to do it every time.
And that’s why you’re a hero.
Yeah cos everyone knows other languages are impossible to write bad code with