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

Prevent node's default action when emitting "error" #15

Open
matthewmueller opened this issue Jul 31, 2015 · 0 comments
Open

Prevent node's default action when emitting "error" #15

matthewmueller opened this issue Jul 31, 2015 · 0 comments

Comments

@matthewmueller
Copy link
Contributor

When an EventEmitter instance experiences an error, the typical action is to emit an 'error' event. Error events are treated as a special case in node. If there is no listener for it, then the default action is to print a stack trace and exit the program.

This is a terrible, terrible default. Right now it's exiting our the program before hitting the switch statement if you don't have your own app level listeners.

@matthewmueller matthewmueller changed the title Do not node's event emitter handle the event Prevent node's default action when emitting "error" Jul 31, 2015
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