Skip to content

inspector: return Error objects on error - #26255

Merged
cjihrig merged 2 commits into
nodejs:masterfrom
cjihrig:inspector-warn
Feb 26, 2019
Merged

inspector: return Error objects on error#26255
cjihrig merged 2 commits into
nodejs:masterfrom
cjihrig:inspector-warn

Conversation

@cjihrig

Copy link
Copy Markdown
Contributor

The inspector communicates errors via POJOs. This PR wraps the error information in an actual Error object.

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

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added errors Issues and PRs related to JavaScript errors originated in Node.js core. inspector Issues and PRs related to the V8 inspector protocol labels Feb 21, 2019
@addaleax

Copy link
Copy Markdown
Member

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 21, 2019
@cjihrig

cjihrig commented Feb 21, 2019

Copy link
Copy Markdown
ContributorAuthor

Comment threadtest/sequential/test-inspector-runtime-evaluate-with-timeout.js Outdated
@cjihrig
cjihrigforce-pushed the inspector-warn branch 2 times, most recently from 041fc27 to e4bdbc1CompareFebruary 26, 2019 20:40
This error is used to propagate errors returned from the
inspector module's command system.
PR-URL: nodejs#26255
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
The inspector communicates errors via POJOs. This commit
wraps the error information in an actual Error object.
PR-URL: nodejs#26255
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@cjihrig

Copy link
Copy Markdown
ContributorAuthor

Landed in 907941d...e3d4a7d

@cjihrig
cjihrig merged commit e3d4a7d into nodejs:masterFeb 26, 2019
@cjihrig
cjihrig deleted the inspector-warn branch February 26, 2019 21:47
addaleax pushed a commit that referenced this pull request Mar 1, 2019
This error is used to propagate errors returned from the
inspector module's command system.
PR-URL: #26255
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
addaleax pushed a commit that referenced this pull request Mar 1, 2019
The inspector communicates errors via POJOs. This commit
wraps the error information in an actual Error object.
PR-URL: #26255
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@BridgeARBridgeAR mentioned this pull request Mar 4, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.errorsIssues and PRs related to JavaScript errors originated in Node.js core.inspectorIssues and PRs related to the V8 inspector protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@cjihrig@nodejs-github-bot@addaleax@eugeneo@BridgeAR