diff --git a/src/ui/components/search/searchcomponent.js b/src/ui/components/search/searchcomponent.js index e4432316f..126464110 100644 --- a/src/ui/components/search/searchcomponent.js +++ b/src/ui/components/search/searchcomponent.js @@ -581,7 +581,10 @@ export default class SearchComponent extends Component { promptForLocation (query) { if (this._promptForLocation) { return this.fetchQueryIntents(query) - .then(queryIntents => queryIntents.includes('NEAR_ME')) + .then( + queryIntents => queryIntents.includes('NEAR_ME'), + error => Promise.reject(new Error('Failed to fetch query intents.', { cause: error })) + ) .then(queryHasNearMeIntent => { if (queryHasNearMeIntent && !this.core.storage.get(StorageKeys.GEOLOCATION)) { return new Promise((resolve, reject) => @@ -604,7 +607,8 @@ export default class SearchComponent extends Component { this._geolocationOptions) ); } - }); + }) + .catch(error => console.warn('Unable to determine user\'s location.', error)); } else { return Promise.resolve(); }