Return early when error

This commit is contained in:
emizzle 2018-10-19 17:02:27 +11:00 committed by Pascal Precht
parent 178115de18
commit 559c7152f7
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ class StorageProcessesLauncher {
this.events.once("web3Ready", () => { this.events.once("web3Ready", () => {
this.events.request("blockchain:object", (blockchain) => { this.events.request("blockchain:object", (blockchain) => {
blockchain.determineDefaultAccount((err, defaultAccount) => { blockchain.determineDefaultAccount((err, defaultAccount) => {
if (err) {
return callback(err);
}
self.processes[storageName].send({ self.processes[storageName].send({
action: constants.storage.init, options: { action: constants.storage.init, options: {
storageConfig: self.storageConfig, storageConfig: self.storageConfig,