Skip to content

Guard against errors in npm #820

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
Aug 26, 2015
Merged

Guard against errors in npm #820

merged 1 commit into from
Aug 26, 2015

Conversation

teobugslayer
Copy link
Contributor

See #819

Note: npm actually assert their parameters instead of calling the provided callback with an error.
In our code, this means that an exception is being thrown in async code which was running without being guarded in a fiber. The end result is process tear down without any chance for us to intervene.

We need to file a issue to npm to fix their code to call the callback with an error in this case.

@teobugslayer teobugslayer force-pushed the totev/guard-npm-assert branch from 97f6be6 to 3a76740 Compare August 26, 2015 10:48
@ns-bot
Copy link

ns-bot commented Aug 26, 2015

@rosen-vladimirov
Copy link
Contributor

👍 after green build

@ns-bot
Copy link

ns-bot commented Aug 26, 2015

teobugslayer added a commit that referenced this pull request Aug 26, 2015
@teobugslayer teobugslayer merged commit ed61780 into master Aug 26, 2015
@teobugslayer teobugslayer deleted the totev/guard-npm-assert branch September 4, 2015 10:23
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.

3 participants