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

Wrap fn.call in try/catch for error handling #4

Open
tunnckoCore opened this issue Aug 12, 2016 · 0 comments
Open

Wrap fn.call in try/catch for error handling #4

tunnckoCore opened this issue Aug 12, 2016 · 0 comments

Comments

@tunnckoCore
Copy link

tunnckoCore commented Aug 12, 2016

Then when there's error, this.emit('error', err), in bonus we can try to call onError handler from options.
All that will help a lot I think.

This also should be done in core base's .use, wanna PRs?

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

No branches or pull requests

1 participant