aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorVincent Serpoul <vincent@serpoul.com>2016-09-06 11:20:22 +0800
committerGitHub <noreply@github.com>2016-09-06 11:20:22 +0800
commit76d63ec4e0f02b7bb91aefb9eb6959198322f42b (patch)
tree80d81aa5c6f71437acd5bcc628ccf3fa3362cfd6 /app
parent9857702e69ae07137f927685f2f52c82334fdc7d (diff)
downloadtangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar.gz
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar.bz2
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar.lz
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar.xz
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.tar.zst
tangerine-wallet-browser-76d63ec4e0f02b7bb91aefb9eb6959198322f42b.zip
Error message more helpful
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/inpage-provider.js5
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..e22e5e411 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
+}