Skip to content

Handle stream errors even with buffer: false #729

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

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jan 24, 2024

Fixes #716.

@ehmicky ehmicky force-pushed the handle-stream-errors branch from 2fe37eb to 9287535 Compare January 24, 2024 20:23
// - `all` is `true`
// - `buffer` is `false`
// - `childProcess.all` is not read by the user
// Therefore, we forcefully resume `childProcess.all` flow on errors.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This took me some time to figure out!

Copy link
Owner

Choose a reason for hiding this comment

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

Oh wow. I bet. 👏

@ehmicky ehmicky force-pushed the handle-stream-errors branch from 9287535 to 158f2a2 Compare January 24, 2024 20:26
@ehmicky ehmicky force-pushed the handle-stream-errors branch from 158f2a2 to 27f91fe Compare January 25, 2024 16:42
@ehmicky ehmicky requested a review from sindresorhus January 25, 2024 16:50
@sindresorhus sindresorhus merged commit fcc8e11 into main Jan 25, 2024
@sindresorhus sindresorhus deleted the handle-stream-errors branch January 25, 2024 16:50
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.

Process streams uncaught exceptions when buffer: false is used
2 participants