mirror of https://github.com/docker/docs.git
Better errors
This commit is contained in:
parent
5b8be73288
commit
04239a39d4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Kitematic",
|
"name": "Kitematic",
|
||||||
"version": "0.5.4",
|
"version": "0.5.5",
|
||||||
"author": "Kitematic",
|
"author": "Kitematic",
|
||||||
"description": "Simple Docker Container management for Mac OS X.",
|
"description": "Simple Docker Container management for Mac OS X.",
|
||||||
"homepage": "https://kitematic.com/",
|
"homepage": "https://kitematic.com/",
|
||||||
|
|
|
@ -91,7 +91,9 @@ SetupStore.setup().then(machine => {
|
||||||
ContainerStore.init(function (err) {
|
ContainerStore.init(function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
bugsnag.notify(err);
|
bugsnag.notify('ContainerStoreError', 'Could not init containerstore', {
|
||||||
|
error: err
|
||||||
|
});
|
||||||
}
|
}
|
||||||
router.transitionTo('containers');
|
router.transitionTo('containers');
|
||||||
});
|
});
|
||||||
|
@ -100,7 +102,10 @@ SetupStore.setup().then(machine => {
|
||||||
step: 'catch',
|
step: 'catch',
|
||||||
message: err.message
|
message: err.message
|
||||||
});
|
});
|
||||||
bugsnag.notify(err);
|
bugsnag.notify('SetupError', 'Setup threw an exception', {
|
||||||
|
step: 'catch',
|
||||||
|
error: err
|
||||||
|
});
|
||||||
console.log(err);
|
console.log(err);
|
||||||
console.log(err.stack);
|
console.log(err.stack);
|
||||||
});
|
});
|
||||||
|
|
|
@ -197,7 +197,12 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
|
||||||
metrics.track('Setup Failed', {
|
metrics.track('Setup Failed', {
|
||||||
step: step.name
|
step: step.name
|
||||||
});
|
});
|
||||||
bugsnag.notify(err);
|
var virtualboxVersion = virtualBox.installed() ? yield virtualBox.version() : 'Not installed';
|
||||||
|
bugsnag.notify('SetupError', 'Setup failed', {
|
||||||
|
error: err,
|
||||||
|
step: step.name,
|
||||||
|
virtualbox: virtualboxVersion
|
||||||
|
});
|
||||||
_error = err;
|
_error = err;
|
||||||
this.emit(this.ERROR_EVENT);
|
this.emit(this.ERROR_EVENT);
|
||||||
} else {
|
} else {
|
||||||
|
@ -220,7 +225,12 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
|
||||||
step: 'done',
|
step: 'done',
|
||||||
message: 'Machine URL not set'
|
message: 'Machine URL not set'
|
||||||
});
|
});
|
||||||
bugsnag.notify('SetupError', 'Machine url was not set', info);
|
var virtualboxVersion = virtualBox.installed() ? yield virtualBox.version() : 'Not installed';
|
||||||
|
bugsnag.notify('SetupError', 'Machine url was not set', {
|
||||||
|
machine: info,
|
||||||
|
step: 'done',
|
||||||
|
virtualbox: virtualboxVersion
|
||||||
|
});
|
||||||
SetupStore.setError('Could not reach the Docker Engine inside the VirtualBox VM');
|
SetupStore.setError('Could not reach the Docker Engine inside the VirtualBox VM');
|
||||||
yield this.pause();
|
yield this.pause();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue