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); docker.setup(machine.url, machine.name);
Menu.setApplicationMenu(Menu.buildFromTemplate(template())); Menu.setApplicationMenu(Menu.buildFromTemplate(template()));
ContainerStore.init(function (err) { ContainerStore.init(function (err) {
if (err) { console.log(err); } if (err) {
bugsnag.notify(err);
}
router.transitionTo('containers'); router.transitionTo('containers');
}); });
}).catch(err => { }).catch(err => {
metrics.track('Setup Failed', {
step: SetupStore.step(),
});
bugsnag.notify(err);
console.log(err); console.log(err);
console.log(err.stack); console.log(err.stack);
bugsnag.notify(err);
}); });

View File

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