doc: avoid mentioning 'uncaughtException'#16905
Conversation
Avoid suggesting using `'uncaughtException'` for emitted errors.
bnoordhuis
left a comment
There was a problem hiding this comment.
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 <info@bnoordhuis.nl>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Avoid suggesting using `'uncaughtException'` for emitted errors. PR-URL: #16905 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
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