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

Cannot catch 'error' event #135

Open
tahsintahsin opened this issue Nov 24, 2016 · 0 comments
Open

Cannot catch 'error' event #135

tahsintahsin opened this issue Nov 24, 2016 · 0 comments

Comments

@tahsintahsin
Copy link

I am unable to trigger error action. My code is:
child.on('error', function (err) { console.log('An error occured '+err); });
I can see that the error occurs and my server crashes and restarts. However, I want to be able to capture the event because inside of the listener I want to be able to log the error and send a warning email to myself.
I am curious what I am doing wrong, a similar issue is opened (#19) but that wasn't answered either.

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