Skip to content

Commit c2edd85

Browse files
committed
chore: exit on errors
1 parent f67f323 commit c2edd85

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
const { app } = require('electron');
12
const init = require('./src/electron');
23
const update = require('./src/underscript');
34

4-
update().then(init);
5+
update().then(init).catch((err) => {
6+
console.error(err);
7+
app.quit();
8+
});

src/preload/dependencies.js

Whitespace-only changes.

0 commit comments

Comments
 (0)