Skip to content

Improve exception messages from remote calls - #3484

Merged
zcbenz merged 1 commit into
electron:masterfrom
bengotow:remote-errors
Nov 18, 2015
Merged

zcbenz merged 1 commit into
electron:masterfrom
bengotow:remote-errors

Conversation

@bengotow

Copy link
Copy Markdown
Contributor

Spent a while tracking down an exception "Error processing argument -1", which turned out to be caused by a missing param on a function call. (app.exit() now takes an exit code.)

This PR traps these sort of exceptions and adds the function name when possible, so it's much easier to identify which remote call is causing the error.

Spent a while tracking down `Error processing argument -1`, caused by a missing param (`app.exit()` now takes an exit code.) Improve the rpc-server so that it prints the function name when possible, so it's much easier to identify which remote call is causing the error.
@grinich

grinich commented Nov 18, 2015

Copy link
Copy Markdown

🚀

@zcbenz

zcbenz commented Nov 18, 2015

Copy link
Copy Markdown
Contributor

👍

zcbenz added a commit that referenced this pull request Nov 18, 2015
Improve exception messages from remote calls
@zcbenz
zcbenz merged commit 1ee6954 into electron:master Nov 18, 2015
@winstliu winstliu mentioned this pull request Nov 18, 2015
17 of 18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants