Better error messages

This commit is contained in:
Jeffrey Morgan 2015-03-06 13:50:26 -05:00
parent d280715773
commit 075afdaf88
1 changed files with 3 additions and 2 deletions

View File

@ -240,10 +240,11 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
break;
} catch (err) {
metrics.track('Setup Failed', {
step: _currentStep
step: _currentStep,
message: err.message
});
var virtualboxVersion = virtualBox.installed() ? yield virtualBox.version() : 'Not installed';
bugsnag.notify('SetupError', 'Setup failed', {
bugsnag.notify('SetupError', err.message, {
error: err,
step: _currentStep,
virtualbox: virtualboxVersion