Fix white screen if VBox is not installed properly

This commit is contained in:
Jeffrey Morgan
2015-03-09 12:27:02 -04:00
parent 3220b43cd7
commit 69bd70584f
2 changed files with 3 additions and 7 deletions

View File

@@ -40,10 +40,8 @@ SetupStore.setup().then(() => {
step: 'catch',
message: err.message
});
bugsnag.notify('SetupError', 'Setup threw an exception', {
step: 'catch',
error: err
});
console.log(err);
bugsnag.notify(err);
});
ipc.on('application:quitting', opts => {

View File

@@ -247,11 +247,9 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
step: _currentStep,
message: err.message
});
var virtualboxVersion = virtualBox.installed() ? yield virtualBox.version() : 'Not installed';
bugsnag.notify('SetupError', err.message, {
error: err,
step: _currentStep,
virtualbox: virtualboxVersion
step: _currentStep
}, 'info');
_error = err;
this.emit(this.ERROR_EVENT);