Hacker News new | ask | show | jobs
by eternalban 3331 days ago
expect[ing_error]("could not open the file")
1 comments

You're not expecting an error. On the contrary, you're expecting a value or throwing an error.
You're expecting specific errors.