aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2022-01-05 21:08:31 +0100
committerLibravatar kytwb <kytwb@pm.me>2022-01-05 21:08:31 +0100
commit363f432519914b81dafb9af10b5d2be0a6115bd8 (patch)
treefd983fbf0b014c370ddf3b293b2ba1f1f9b1bc56 /src
parentNew Crowdin updates (#2385) (diff)
downloadferdium-app-363f432519914b81dafb9af10b5d2be0a6115bd8.tar.gz
ferdium-app-363f432519914b81dafb9af10b5d2be0a6115bd8.tar.zst
ferdium-app-363f432519914b81dafb9af10b5d2be0a6115bd8.zip
Handle 404's for unpublished pre-releases
Diffstat (limited to 'src')
-rw-r--r--src/stores/AppStore.js9
1 files changed, 7 insertions, 2 deletions
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 {
182 } 182 }
183 183
184 if (data.error) { 184 if (data.error) {
185 console.log('Updater error:', data.error); 185 if (data.error.message && data.error.message.startsWith('404')) {
186 this.updateStatus = this.updateStatusTypes.FAILED; 186 this.updateStatus = this.updateStatusTypes.NOT_AVAILABLE;
187 console.warn('Updater warning: there seems to be unpublished pre-release(s) available on GitHub', data.error);
188 } else {
189 console.error('Updater error:', data.error);
190 this.updateStatus = this.updateStatusTypes.FAILED;
191 }
187 } 192 }
188 } 193 }
189 }); 194 });