mirror of https://github.com/embarklabs/embark.git
Return early when error
This commit is contained in:
parent
178115de18
commit
559c7152f7
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue