diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-04-29 02:51:52 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-04-29 02:51:52 +0800 |
commit | 6cc7c08b75bed6ad95698b96cb788366a8334ecd (patch) | |
tree | 800425c9f54f92c3f84606b19cd45bff3d8e4af8 /app/scripts/background.js | |
parent | 9b524b4f28bebbdf8351763b61e897f33021e25b (diff) | |
parent | d562b86f7af51cd303ead5ee9a76ac91a288e167 (diff) | |
download | tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar.gz tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar.bz2 tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar.lz tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar.xz tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.tar.zst tangerine-wallet-browser-6cc7c08b75bed6ad95698b96cb788366a8334ecd.zip |
Merge pull request #158 from MetaMask/eth_Sign
tx list - bug fix - fixes #143
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 523df1261..83d0f575a 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -131,7 +131,10 @@ function onRpcRequest(remoteStream, payload){ // console.log('MetaMaskPlugin - incoming payload:', payload) provider.sendAsync(payload, function onPayloadHandled(err, response){ // provider engine errors are included in response objects - if (!payload.isMetamaskInternal) console.log('MetaMaskPlugin - RPC complete:', payload, '->', response) + if (!payload.isMetamaskInternal) { + console.log('MetaMaskPlugin - RPC complete:', payload, '->', response) + if (response.error) console.error('Error in RPC response:\n'+response.error.message) + } try { remoteStream.write(response) } catch (err) { |