From 048452fe7ccb5315cffa747c135a6fd049f1cdf8 Mon Sep 17 00:00:00 2001 From: Sigve Kvalsvik Date: Tue, 10 Jul 2018 12:08:20 +0200 Subject: [PATCH] Throw error on init fail --- lib/chain/src/ChainStore.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chain/src/ChainStore.js b/lib/chain/src/ChainStore.js index 24c40636..46b534c5 100644 --- a/lib/chain/src/ChainStore.js +++ b/lib/chain/src/ChainStore.js @@ -97,7 +97,7 @@ class ChainStore { this.clearCache(); this.head_block_time_string = null; return this.init(subscribe_to_new).catch(err => { - console.log("resetCache init error:", err); + throw err; }); } diff --git a/package.json b/package.json index 68e34e8b..541aa6b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitsharesjs", - "version": "1.7.11", + "version": "1.8.0", "description": "Pure JavaScript Bitshares library for node.js and browsers.", "browser": { "ws": false,