mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
auto-updater: less intrusive error handling
This commit is contained in:
parent
f7a6b02d4f
commit
2eb878bebe
1 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const { autoUpdater, dialog } = require('electron');
|
||||
const { autoUpdater } = require('electron');
|
||||
const { version } = require('./package');
|
||||
const notify = require('./notify');
|
||||
const ms = require('ms');
|
||||
|
||||
const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';
|
||||
|
|
@ -7,11 +8,7 @@ let isInit = false;
|
|||
|
||||
function init () {
|
||||
autoUpdater.on('error', (err, msg) => {
|
||||
dialog.showMessageBox({
|
||||
title: 'title',
|
||||
message: 'Auto updater error: ' + msg + ' (' + err.stack + ')',
|
||||
buttons: ['Ok']
|
||||
});
|
||||
notify('Error fetching updates', msg + ' (' + err.stack + ')');
|
||||
});
|
||||
|
||||
autoUpdater.setFeedURL(`${FEED_URL}/${version}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue