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:
Juan Cruz Viotti 2016-03-25 10:12:20 -04:00
commit 5098a06c98

View File

@ -32,7 +32,7 @@ electron.app.on('ready', function() {
if (error) {
electron.dialog.showErrorBox('Elevation Error', error.message);
process.exit(1);
return process.exit(1);
}
mainWindow = new electron.BrowserWindow({