Use dialog.showErrorBox for showing errors

This commit is contained in:
Cheng Zhao 2014-11-05 16:05:29 +08:00
parent 10e195a444
commit f6ba308ff8
2 changed files with 4 additions and 14 deletions

View file

@ -49,13 +49,7 @@ if (option.file && !option.webdriver) {
if (e.code == 'MODULE_NOT_FOUND') {
app.focus();
console.error(e.stack);
dialog.showMessageBox({
type: 'warning',
buttons: ['OK'],
title: 'Error opening app',
message: 'The app provided is not a valid atom-shell app, please read the docs on how to write one:',
detail: 'https://github.com/atom/atom-shell/tree/master/docs'
});
dialog.showErrorBox('Error opening app', 'The app provided is not a valid atom-shell app, please read the docs on how to write one:\nhttps://github.com/atom/atom-shell/tree/master/docs');
process.exit(1);
} else {
console.error('App throwed an error when running', e);