From 363f432519914b81dafb9af10b5d2be0a6115bd8 Mon Sep 17 00:00:00 2001 From: kytwb Date: Wed, 5 Jan 2022 21:08:31 +0100 Subject: Handle 404's for unpublished pre-releases --- src/stores/AppStore.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/stores') diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 54a3e4d92..93a7deea9 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -182,8 +182,13 @@ export default class AppStore extends Store { } if (data.error) { - console.log('Updater error:', data.error); - this.updateStatus = this.updateStatusTypes.FAILED; + if (data.error.message && data.error.message.startsWith('404')) { + this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE; + console.warn('Updater warning: there seems to be unpublished pre-release(s) available on GitHub', data.error); + } else { + console.error('Updater error:', data.error); + this.updateStatus = this.updateStatusTypes.FAILED; + } } } }); -- cgit v1.2.3-70-g09d2