aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-06 03:33:21 +0800
committerGitHub <noreply@github.com>2016-07-06 03:33:21 +0800
commit25598f1b6ffc110619332dc5e69dd72d6c157621 (patch)
tree59991e0f785cc8907bade48ed6ec66fd008f3624
parentc4cbe3ad4cb5403ee6f0fa16f68a7e8f9aded4f1 (diff)
parentc0b0c9c0289296d3fb280fa760e723419275e8a6 (diff)
downloadtangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar.gz
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar.bz2
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar.lz
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar.xz
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.tar.zst
tangerine-wallet-browser-25598f1b6ffc110619332dc5e69dd72d6c157621.zip
Merge pull request #385 from MetaMask/ImprovedLogging
Improve metamask-controller error logging
-rw-r--r--app/scripts/metamask-controller.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 470591323..8a5ffb75a 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -89,10 +89,12 @@ module.exports = class MetamaskController {
})
function logger (err, request, response) {
- if (err) return console.error(err.stack)
+ if (err) return console.error(err)
if (!request.isMetamaskInternal) {
console.log(`RPC (${originDomain}):`, request, '->', response)
- if (response.error) console.error('Error in RPC response:\n' + response.error.message)
+ if (response.error) {
+ console.error('Error in RPC response:\n', response.error)
+ }
}
}
}