mirror of https://github.com/docker/docs.git
Fix fail event
This commit is contained in:
parent
a19b59f69b
commit
4795e323e2
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue