mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Error message more helpful
This commit is contained in:
parent
9857702e69
commit
76d63ec4e0
@ -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)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user