Fix fail event

This commit is contained in:
Jeffrey Morgan 2015-02-28 23:04:52 -05:00
parent a19b59f69b
commit 4795e323e2
2 changed files with 9 additions and 2 deletions

View File

@ -85,11 +85,16 @@ SetupStore.run().then(machine.info).then(machine => {
docker.setup(machine.url, machine.name);
Menu.setApplicationMenu(Menu.buildFromTemplate(template()));
ContainerStore.init(function (err) {
if (err) { console.log(err); }
if (err) {
bugsnag.notify(err);
}
router.transitionTo('containers');
});
}).catch(err => {
metrics.track('Setup Failed', {
step: SetupStore.step(),
});
bugsnag.notify(err);
console.log(err);
console.log(err.stack);
bugsnag.notify(err);
});

View File

@ -192,10 +192,12 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
_error = err;
this.emit(this.ERROR_EVENT);
} else {
metrics.track('Setup Cancelled');
_cancelled = true;
this.emit(this.STEP_EVENT);
}
yield this.wait();
metrics.track('Setup Retried');
}
}
}