-
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
doc: avoid mentioning 'uncaughtException' #16905
Conversation
Avoid suggesting using `'uncaughtException'` for emitted errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already a step up so +1 from me.
I'm not in favor of removing documentation if it's still supported but here's my concern: if user space is misusing a feature, isn't the responsibility of the docs to shed some light into misunderstandings? |
@a0viedo the feature is still documented and there is a dedicated section called "Warning: Using This only removes it from the |
Should we link to the "Using |
@Trott we can but I would prefer not to. I wanted to also remove the domain recommendation and only keep the last sentence ("As a best practice, listeners should always be added for the |
Landed in 9531fcb |
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <[email protected]>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <[email protected]>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <[email protected]>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <[email protected]>
I think we should not mention the
'uncaughtException'
event in the documentation of the error events. Experience has taught me that it is usually used in the wrong way leading to bizarre situations like parsers blocked in a wrong state, events emitted multiple times when they should not, etc. If an'error'
event does not have a listener the process should just exit.Checklist
Affected core subsystem(s)
doc