Merge pull request #611 from vincentserpoul/patch-1

Error message more helpful
feature/default_network_editable
Kevin Serrano 8 years ago committed by GitHub
commit f6be97d9cf
  1. 5
      app/scripts/lib/inpage-provider.js

@ -80,7 +80,8 @@ MetamaskInpageProvider.prototype.send = function (payload) {
// throw not-supported Error // throw not-supported Error
default: default:
var message = 'The MetaMask Web3 object does not support synchronous methods. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#all-async---think-of-metamask-as-a-light-client for details.' var message = 'The MetaMask Web3 object does not support synchronous methods like ' + payload.method +
'. See https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#all-async---think-of-metamask-as-a-light-client for details.'
throw new Error(message) throw new Error(message)
} }
@ -131,4 +132,4 @@ function eachJsonMessage(payload, transformFn){
} else { } else {
return transformFn(payload) return transformFn(payload)
} }
} }

Loading…
Cancel
Save