-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Unhandled 'error' event #18680
Comments
There is no
Could you give a suggestion of output that you would have found helpful? Also, I’d suggest moving this discussion to https://github.com/nodejs/help/, I think that’s a better place for it (because it’s not a bug with Node). |
Many thanks for so quick response. |
How would Node know how the |
That's why I'm asking. The simplest thing for me, it's just do not use same naming of events.
One again thanks for your response. |
I'm not sure is a "feature" or "bug", but use case is messy.
Expected result:
exit code 0
because error event is handled.But I want to trigger "my" event also:
But now result is:
exit code 1
- application is crashed withinUnhandled 'error' event
Simple changing of event's name fix it:
And again I have
exit code 0
as it should be.So, is a bug? Or feature? Why I cannot use same naming for events even I don't inherite from spawn.
If it's some kind of specific it would be great to have some more informative logs in console for such cases.
Thanks.
The text was updated successfully, but these errors were encountered: