Skip to content

Commit

Permalink
fix: silently catch update error
Browse files Browse the repository at this point in the history
closes #196
  • Loading branch information
juancarlosfarah committed Oct 26, 2019
1 parent 69aff4e commit cae98e0
Show file tree
Hide file tree
Showing 3 changed files with 451 additions and 575 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"npm-run-all": "4.1.5",
"prettier": "1.17.0",
"pretty-quick": "1.10.0",
"react-scripts": "3.2.0",
"react-scripts": "3.0.1",
"redux-mock-store": "1.5.3",
"standard-version": "5.0.2",
"wait-on": "3.2.0"
Expand Down
7 changes: 6 additions & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,12 @@ const generateMenu = () => {
app.on('ready', async () => {
// updater
autoUpdater.logger = logger;
autoUpdater.checkForUpdatesAndNotify();

// noinspection ES6MissingAwait
autoUpdater
.checkForUpdatesAndNotify()
.then()
.catch(err => logger.error(err));

await ensureDatabaseExists(DATABASE_PATH);
const db = bootstrapDatabase(DATABASE_PATH);
Expand Down
Loading

0 comments on commit cae98e0

Please sign in to comment.