From 559c7152f72a5a87adf53eaac49267706c70625d Mon Sep 17 00:00:00 2001 From: emizzle Date: Fri, 19 Oct 2018 17:02:27 +1100 Subject: [PATCH] Return early when error --- lib/modules/storage/storageProcessesLauncher.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/modules/storage/storageProcessesLauncher.js b/lib/modules/storage/storageProcessesLauncher.js index f0a697e4c..559bc4ff6 100644 --- a/lib/modules/storage/storageProcessesLauncher.js +++ b/lib/modules/storage/storageProcessesLauncher.js @@ -114,6 +114,9 @@ class StorageProcessesLauncher { this.events.once("web3Ready", () => { this.events.request("blockchain:object", (blockchain) => { blockchain.determineDefaultAccount((err, defaultAccount) => { + if (err) { + return callback(err); + } self.processes[storageName].send({ action: constants.storage.init, options: { storageConfig: self.storageConfig,