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

Reject on stream error events #224

Merged
merged 2 commits into from
Jul 6, 2019

Conversation

stieg
Copy link
Contributor

@stieg stieg commented Jul 5, 2019

Previously the .stream method would not reject if an error happened.
This could cause the promise to never resolve and thus could cause
hangs. This fixes that by rejecting whenever an error event happens.

stieg and others added 2 commits July 5, 2019 09:26
Previously the .stream method would not reject if an error happened.
This could cause the promise to never resolve and thus could cause
hangs. This fixes that by rejecting whenever an error event happens.
@sindresorhus sindresorhus merged commit a1da90b into sindresorhus:master Jul 6, 2019
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.

2 participants