aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-06 00:06:33 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-06 00:06:33 +0800
commit1d8d7d833df3c2b398efdf067df84ffd41f27e49 (patch)
treee9ae5097bff924d1395ab3cbef19b95eac9f459a /app
parent76c473538ab477ddc7171da01153de12370e759a (diff)
downloadtangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar.gz
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar.bz2
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar.lz
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar.xz
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.tar.zst
tangerine-wallet-browser-1d8d7d833df3c2b398efdf067df84ffd41f27e49.zip
Improve metamask-controller error logging
Fixes #384
Diffstat (limited to 'app')
-rw-r--r--app/scripts/metamask-controller.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 470591323..f2f69bc8c 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -89,10 +89,13 @@ 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')
+ console.error(response.error)
+ }
}
}
}