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

Add stream index to errors #34

Closed

Conversation

Oligrand
Copy link

@Oligrand Oligrand commented Feb 9, 2018

When an error is returned to the callback of pump, it would be nice to know which stream was the cause of the error if you want to add some custom handling of the error depending on which stream caused the error.

Therefore this PR adds a 'streamIndex' property to errors returned to callback, so that you can easily determine which stream caused the error.

@phated
Copy link
Contributor

phated commented Feb 14, 2018

Interesting! I kind of like this change.

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