diff options
author | Joas Schilling <coding@schilljs.com> | 2018-08-06 17:51:37 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-08-06 17:51:37 +0300 |
commit | f84dc9c94833134005fdf344fa7ef46e2f9555a8 (patch) | |
tree | 13e67f92f7003bbc39a8a3c6eff63794832ccc29 /src/App.vue | |
parent | c482cbb84790693bfc96cd1f1833cd5e95ea6100 (diff) |
Fix "Cannot read property 'status' of undefined"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index c430998..e46a283 100644 --- a/src/App.vue +++ b/src/App.vue @@ -95,7 +95,10 @@ } }) .catch(err => { - if (err.response.status === 503) { + if (!err.response) { + console.debug('No response received, retrying'); + return; + } else if (err.response.status === 503) { // 503 - Maintenance mode console.debug('Shutting down notifications: instance is in maintenance mode.'); } else if (err.response.status === 404) { |