aboutsummaryrefslogtreecommitdiffstats
path: root/lib/providermanager.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 06:00:02 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 06:00:02 +0800
commite58e2f5ee466f054405b3e90a67720254ea17ead (patch)
tree292927f3c2b7ac548376b0d42aa5e6ac67ec85c0 /lib/providermanager.js
parent45134de7401b58f0118deb16bf0644495715fbdb (diff)
downloadgo-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar.gz
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar.bz2
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar.lz
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar.xz
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.tar.zst
go-tangerine-e58e2f5ee466f054405b3e90a67720254ea17ead.zip
jsonrpc.js tests && jsonrpc response validation is more strict
Diffstat (limited to 'lib/providermanager.js')
-rw-r--r--lib/providermanager.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/providermanager.js b/lib/providermanager.js
index ce208917d..55f166bcd 100644
--- a/lib/providermanager.js
+++ b/lib/providermanager.js
@@ -54,6 +54,7 @@ var ProviderManager = function() {
var result = results[index];
if (!jsonrpc.isValidResponse(result)) {
+ console.log(result);
return;
}
@@ -86,7 +87,7 @@ ProviderManager.prototype.send = function(data) {
var result = this.provider.send(payload);
if (!jsonrpc.isValidResponse(result)) {
- console.log(result.error);
+ console.log(result);
return null;
}