FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

events: give subclass name in unhandled 'error' message by addaleax · Pull Request #28952 · nodejs/node · GitHub

/ node Public

events: give subclass name in unhandled 'error' message - #28952

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:ee-subclass-error
Closed

events: give subclass name in unhandled 'error' message#28952
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:ee-subclass-error

Conversation

addaleax commented Aug 3, 2019

Copy link
Copy Markdown
Member

For unhandled 'error' events, include the constructor name for
subclasses of EventEmitter, if possible. This makes tracing errors
easier when both creation of the Error object and emitting it
happen in code that does not refer back to the event emitter.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

For unhandled `'error'` events, include the constructor name for
subclasses of EventEmitter, if possible. This makes tracing errors
easier when both creation of the `Error` object and emitting it
happen in code that does not refer back to the event emitter.
addaleax added the events Issues and PRs related to the events subsystem / EventEmitter. label Aug 3, 2019

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Trott commented Aug 7, 2019

Copy link
Copy Markdown
Member

Landed in 4c9fb0b

Trott closed this Aug 7, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Aug 7, 2019
For unhandled `'error'` events, include the constructor name for
subclasses of EventEmitter, if possible. This makes tracing errors
easier when both creation of the `Error` object and emitting it
happen in code that does not refer back to the event emitter.

PR-URL: nodejs#28952
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Aug 19, 2019
For unhandled `'error'` events, include the constructor name for
subclasses of EventEmitter, if possible. This makes tracing errors
easier when both creation of the `Error` object and emitting it
happen in code that does not refer back to the event emitter.

PR-URL: #28952
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

events Issues and PRs related to the events subsystem / EventEmitter.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL