-
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
Pass stream as parameter to onFinish handler #532
Comments
I wish Node would clarify whether or not I agree that there should be a way to work around the default Highland behavior in this case, especially since we used to support it. However, I want to do it in a more principled way than just passing in For curiosity, are the Node streams you're using something from the Node standard library or is it from an external (to Node) library? |
I'm fine with restricting the way to handle as long as there is a way to say: "handle this error and continue". I am using a I could treat the Error as a normal token; but that would add a third type when I'd like to preserve the semantics. |
I see. Well, I think the |
Looks good to me, thanks. Can we forward port this to the |
Yes. I will do that when I merge the PR. |
|
I have a Node stream that can emit an error and can also emit content afterwards.
Example:
I'd like to handle the error and continue. I can do so if we update
pipeReadable
to callonFinish
withstream
as a third parameter.This way I can override error handling to write a new
StreamError
without ending.The text was updated successfully, but these errors were encountered: