From 090959470b5f308d485ea9842b2ffbb54b6b14c2 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 19 Oct 2016 15:16:27 -0700 Subject: [PATCH] Add note about callback param to sync method warning --- app/scripts/lib/inpage-provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index c6bfdb4da..052a8f5fe 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -84,7 +84,7 @@ MetamaskInpageProvider.prototype.send = function (payload) { // throw not-supported Error default: var link = 'https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#dizzy-all-async---think-of-metamask-as-a-light-client' - var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method}. See ${link} for details.` + var message = `The MetaMask Web3 object does not support synchronous methods like ${payload.method} without a callback parameter. See ${link} for details.` throw new Error(message) }