Replies: 2 comments 2 replies
-
The error is emitted asynchronously as an event, definitely on the file stream and perhaps by that wrapper class. It's not synchronous so this code won't catch it. Neither will the Look into error handling with Node.js streams for more context. |
Beta Was this translation helpful? Give feedback.
1 reply
-
nope. Still struggling with this. Guess I need an idiot's guide Given this statement :
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that I must be doing something wrong but for the life of me I can;t see it. I want to test this method of a class:
I'm expecting the
createReadStream
to throw an error because the id is invalid.My test is this
now for the strange part. this is the console output
notice that there are no #A or #B or #C in the output. It also looks like the error in the catch hasn't been thrown either
if I uncomment the "return true" in the "try" this is the log
this time I do get the #A, #B and #C
what is going on ? Have I completely lost the plot ?
Beta Was this translation helpful? Give feedback.
All reactions