Use dialog.showErrorBox

This commit is contained in:
Kevin Sawicki 2016-05-24 09:37:52 -07:00
parent 67c88d2f8a
commit f691a46d4d

View file

@ -275,15 +275,7 @@ function loadApplicationPackage (packagePath) {
function showErrorMessage (message) {
app.focus()
dialog.showMessageBox({
message: 'Error opening app',
detail: message,
buttons: ['OK', 'Learn More']
}, (response) => {
if (response === 1) {
shell.openExternal('http://electron.atom.io/docs')
}
})
dialog.showErrorBox('Error launching app', message)
process.exit(1)
}