Skip to content

Commit

Permalink
The app closes on the file error now
Browse files Browse the repository at this point in the history
  • Loading branch information
KyzaGitHub committed Jul 24, 2019
1 parent 4a1527c commit 0f9cb0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ function openFile(filePath, delay, tries, currentTry) {
dialog.showMessageBox({
'message': `${err}`
});
setTimeout(() => {
app.exit(0);
}, 5000);
}
} else {
// Once finished, close the current app.
Expand Down

0 comments on commit 0f9cb0e

Please sign in to comment.