Skip to content

Commit 99725c3

Browse files
committed
Catch error from autoupdater
1 parent 0dcda86 commit 99725c3

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
},
4949
"repository": {
5050
"type": "git",
51-
"url": "git+https://github.com/RedisLabs/redisinsight-v2.git"
51+
"url": "git+https://github.com/RedisInsight/RedisInsight.git"
5252
},
5353
"author": {
5454
"name": "Redis Ltd.",
5555
"email": "[email protected]",
5656
"url": "https://redis.com/redis-enterprise/redis-insight"
5757
},
5858
"bugs": {
59-
"url": "https://github.com/RedisLabs/redisinsight-v2/issues"
59+
"url": "https://github.com/RedisInsight/RedisInsight/issues"
6060
},
6161
"keywords": [
6262
"redisinsight",
@@ -68,7 +68,7 @@
6868
"sass",
6969
"webpack"
7070
],
71-
"homepage": "https://github.com/RedisLabs/redisinsight-v2#readme",
71+
"homepage": "https://github.com/RedisInsight/RedisInsight#readme",
7272
"jest": {
7373
"testURL": "http://localhost/",
7474
"moduleNameMapper": {

redisinsight/main.dev.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ export default class AppUpdater {
4848
log.info('AppUpdater initialization');
4949
log.transports.file.level = 'info';
5050

51-
autoUpdater.setFeedURL({
52-
provider: 'generic',
53-
url: process.env.MANUAL_UPGRADES_LINK || process.env.UPGRADES_LINK,
54-
});
51+
try {
52+
autoUpdater.setFeedURL({
53+
provider: 'generic',
54+
url: process.env.MANUAL_UPGRADES_LINK || process.env.UPGRADES_LINK,
55+
});
56+
} catch (error) {
57+
log.error(error);
58+
}
5559

5660
autoUpdater.checkForUpdatesAndNotify();
5761
autoUpdater.autoDownload = true;

0 commit comments

Comments
 (0)