Skip to content
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

Fix error handling when piping streamx with node:stream #95

Closed
wants to merge 1 commit into from

Conversation

ehmicky
Copy link

@ehmicky ehmicky commented Oct 29, 2024

Fixes #94.

if (!cb) {
if (pipeTo.listeners('error').length === 0) {
pipeTo.emit('error', err)
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ehmicky ehmicky force-pushed the unhandled-rejection branch from adc05a5 to 9b576ad Compare October 30, 2024 01:08
@mafintosh
Copy link
Owner

mafintosh commented Oct 30, 2024

This was working as intended before. Streamx pipes are fully error handled per default.

@mafintosh
Copy link
Owner

@mafintosh mafintosh closed this Oct 30, 2024
@ehmicky ehmicky deleted the unhandled-rejection branch October 30, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid error handling when piping streamx with node:stream
2 participants