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) {
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue