Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Displaye error on checkForUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
renefs committed Sep 3, 2019
1 parent 9d8081d commit 5a6d24e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ function checkForUpdates(menuItem, focusedWindow, event) {
let channel = data.channel || 'latest';
console.log(`Updating app using channel: ${channel}`);

if (error) channel = 'latest';
if (error) {
console.log(`Error found checking updates: ${error}`);
channel = 'latest';
}
autoUpdater.channel = channel;
autoUpdater.checkForUpdates();
});
Expand Down

0 comments on commit 5a6d24e

Please sign in to comment.