Use dialog.showErrorBox
This commit is contained in:
parent
67c88d2f8a
commit
f691a46d4d
1 changed files with 1 additions and 9 deletions
|
@ -275,15 +275,7 @@ function loadApplicationPackage (packagePath) {
|
||||||
|
|
||||||
function showErrorMessage (message) {
|
function showErrorMessage (message) {
|
||||||
app.focus()
|
app.focus()
|
||||||
dialog.showMessageBox({
|
dialog.showErrorBox('Error launching app', message)
|
||||||
message: 'Error opening app',
|
|
||||||
detail: message,
|
|
||||||
buttons: ['OK', 'Learn More']
|
|
||||||
}, (response) => {
|
|
||||||
if (response === 1) {
|
|
||||||
shell.openExternal('http://electron.atom.io/docs')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue