Skip to content
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

inspector: return Error objects on error #26255

Merged
merged 2 commits into from
Feb 26, 2019
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Feb 21, 2019

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 nodejs-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
Member

@addaleax addaleax 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
Copy link
Contributor Author

cjihrig commented Feb 21, 2019

@cjihrig cjihrig force-pushed the inspector-warn branch 2 times, most recently from 041fc27 to e4bdbc1 Compare February 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
Contributor Author

cjihrig commented Feb 26, 2019

Landed in 907941d...e3d4a7d

@cjihrig cjihrig merged commit e3d4a7d into nodejs:master Feb 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>
@BridgeAR BridgeAR mentioned this pull request Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. errors Issues and PRs related to JavaScript errors originated in Node.js core. inspector Issues and PRs related to the V8 inspector protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants