]> khamidou — GitHub mirrors - electron.git/commit
Improve exception messages from remote calls
authorBen Gotow <bengotow@gmail.com>
Wed, 18 Nov 2015 01:36:37 +0000 (17:36 -0800)
committerBen Gotow <bengotow@gmail.com>
Wed, 18 Nov 2015 01:36:37 +0000 (17:36 -0800)
commit1022179a1ff78c9622538ec150517ffcedffb78c
tree1d94a20cc5f9a416794d25d08b28ccedfb3d8a0d
parent312a79165be96dcde56e6f7d270f0ff7d4c65a76
Improve exception messages from remote calls

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.
atom/browser/lib/rpc-server.coffee