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

Propagate errors instead of crashing #35

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

paulmelnikow
Copy link
Collaborator

The bug was attempting to promisify a non-existent cleanup handler in case of errors. Now in case of an error, just emit the error. In case of an error there isn't a valid callback function (nor is the result passed through the promise anyway).

Fix #34

@paulmelnikow paulmelnikow requested a review from benjamingr July 3, 2019 17:31
Copy link
Owner

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

Changes LGTM, I can do a release tomorrow or next week

Maybe also bump the version in package.json here so it's linked to the same PR in GH?

@paulmelnikow
Copy link
Collaborator Author

Done!

@benjamingr benjamingr merged commit 04aab31 into benjamingr:master Jul 4, 2019
@paulmelnikow paulmelnikow deleted the errors branch July 4, 2019 14:52
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.

Errors are not passed through
2 participants