diff options
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r-- | dist/ethereum.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js index 6107f65da..3c5f01854 100644 --- a/dist/ethereum.js +++ b/dist/ethereum.js @@ -783,6 +783,12 @@ ProviderManager.prototype.send = function(data) { //TODO: handle error here? var result = this.provider.send(data); result = JSON.parse(result); + + if (result.error) { + console.log(result.error); + return null; + } + return result.result; }; |