mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -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 { version } = require('./package');
|
||||||
|
const notify = require('./notify');
|
||||||
const ms = require('ms');
|
const ms = require('ms');
|
||||||
|
|
||||||
const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';
|
const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';
|
||||||
|
|
@ -7,11 +8,7 @@ let isInit = false;
|
||||||
|
|
||||||
function init () {
|
function init () {
|
||||||
autoUpdater.on('error', (err, msg) => {
|
autoUpdater.on('error', (err, msg) => {
|
||||||
dialog.showMessageBox({
|
notify('Error fetching updates', msg + ' (' + err.stack + ')');
|
||||||
title: 'title',
|
|
||||||
message: 'Auto updater error: ' + msg + ' (' + err.stack + ')',
|
|
||||||
buttons: ['Ok']
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
autoUpdater.setFeedURL(`${FEED_URL}/${version}`);
|
autoUpdater.setFeedURL(`${FEED_URL}/${version}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue