aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-28 07:07:03 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-28 07:07:03 +0800
commit1345a8c67c41a31847c0dea23a7e7904bf25779a (patch)
tree00e38b5da7732f80c04825b1b29a61bd9733ad3b /dist/ethereum.js
parent83fad0fb594ca120eb979d4d643be96c26553a6f (diff)
downloadgo-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar.gz
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar.bz2
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar.lz
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar.xz
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.tar.zst
go-tangerine-1345a8c67c41a31847c0dea23a7e7904bf25779a.zip
log error on console, if api returns an error
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js6
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;
};