-
Notifications
You must be signed in to change notification settings - Fork 147
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
Pipeline not propagating Promise casted error properly #391
Comments
The two examples you gave should behave the same way, so you're not misunderstanding. But I can't reproduce the bug. What version of highland are you using? I'm using 2.5.1 and both of your examples print
every second. |
I'm also using 2.5.1 strange.... |
Nevermind, I see it. I thought I correctly copied your second example, but apparently I didn't. I ran it against master though, and it seems to work. My guess is it was fixed by #372. That PR was meant to fix Can you verify that the code in master works for you? Aside: Looks like 2.5.1 was released in May, which means it's probably time to do another release. I'll probably do this after #393 is merged. |
Btw, using This is functionally equivalent to the version you had with .through(hi.seq(
prependBlah,
appendAsdf,
appendNewline
)) |
Closing because the issue seems to be resolved in the latest version. @daywiss, I got a notification of your comment, but since you've deleted it, I'll assume that you've worked out the issue that you had. |
it seems like when a stream is passed through a pipeline the error is not being propagated properly and the error handler is never called.
For instance while this works (as it should)
the below snippet of code causes the following error to be thrown:
Unhandled rejection Error: 3
Seems like the error should be handled in both instances, and thus the promise chain should handle the rejection. Maybe I am misunderstanding how pipeline and highland stream error handling is supposed to function.
The text was updated successfully, but these errors were encountered: