diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-09-06 14:14:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 14:14:55 +0800 |
commit | f6be97d9cfa005d785cdf172c79beac953a212f5 (patch) | |
tree | 74b6064e0a73e32530d39b55bd4cf25990705000 | |
parent | 9857702e69ae07137f927685f2f52c82334fdc7d (diff) | |
parent | 4cf12337f2d3ad97a670ddbdc131435415f9626b (diff) | |
download | tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar.gz tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar.bz2 tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar.lz tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar.xz tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.tar.zst tangerine-wallet-browser-f6be97d9cfa005d785cdf172c79beac953a212f5.zip |
Merge pull request #611 from vincentserpoul/patch-1
Error message more helpful
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index 3b7d76c7d..4f9fa1a7d 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -80,7 +80,8 @@ MetamaskInpageProvider.prototype.send = function (payload) { // throw not-supported Error 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) } @@ -131,4 +132,4 @@ function eachJsonMessage(payload, transformFn){ } else { return transformFn(payload) } -}
\ No newline at end of file +} |