Merge pull request #22458 from nextcloud/fix/weather-status-navigate-error

Hide error if a background request fails during navigation
This commit is contained in:
Roeland Jago Douma 2020-08-27 14:59:57 +02:00 committed by GitHub
commit 2c6c5fece6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -236,8 +236,12 @@ export default {
this.startLoop()
}
} catch (err) {
if (err?.code === 'ECONNABORTED') {
console.info('The weather status request was cancelled because the user navigates.')
return
}
showError(t('weather_status', 'There was an error getting the weather status information.'))
console.debug(err)
console.error(err)
}
},
startLoop() {