Add console.log statement on error to help debug

- Geolocation is working in development, but not on staging or
production
This commit is contained in:
mattwr18 2019-09-09 09:54:38 +02:00
parent 3d419c1f21
commit e819ade8cb

View File

@ -159,7 +159,6 @@ export default {
this.cities = [] this.cities = []
return return
} }
this.loadingGeo = true this.loadingGeo = true
this.axiosSource = CancelToken.source() this.axiosSource = CancelToken.source()
@ -176,6 +175,10 @@ export default {
.then(res => { .then(res => {
this.cities = this.processCityResults(res) this.cities = this.processCityResults(res)
}) })
.catch(error => {
/* eslint-disable-next-line no-console */
console.log(error)
})
.finally(() => { .finally(() => {
this.loadingGeo = false this.loadingGeo = false
}) })