mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
Merge pull request #217 from resin-io/fix/uncaught-exception-sudo-prompt
Return to avoid any further code execution after an elevation error
This commit is contained in:
commit
5098a06c98
@ -32,7 +32,7 @@ electron.app.on('ready', function() {
|
|||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
electron.dialog.showErrorBox('Elevation Error', error.message);
|
electron.dialog.showErrorBox('Elevation Error', error.message);
|
||||||
process.exit(1);
|
return process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow = new electron.BrowserWindow({
|
mainWindow = new electron.BrowserWindow({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user