metamask - on rpc err show whole error body

feature/default_network_editable
kumavis 7 years ago
parent 6587f6eabd
commit 9f46984fee
  1. 2
      app/scripts/metamask-controller.js

@ -367,7 +367,7 @@ module.exports = class MetamaskController extends EventEmitter {
function onResponse (err, request, response) {
if (err) return console.error(err)
if (response.error) {
console.error('Error in RPC response:\n', response.error)
console.error('Error in RPC response:\n', response)
}
if (request.isMetamaskInternal) return
log.info(`RPC (${originDomain}):`, request, '->', response)

Loading…
Cancel
Save