diff options
deps - bump ui and provider-engine
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/background.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index fb2fad54b..472ef5aeb 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -61,8 +61,8 @@ function getState(){ function onRpcRequest(remotePort, payload){ // console.log('MetaMaskPlugin - incoming payload:', payload) zeroClient.sendAsync(payload, function onPayloadHandled(err, response){ - if (err) throw err - console.log('MetaMaskPlugin - RPC complete:', payload, '->', response) + // provider engine errors are included in response objects + if (!payload.isMetamaskInternal) console.log('MetaMaskPlugin - RPC complete:', payload, '->', response) try { remotePort.postMessage(response) } catch (_) { |