Add console.error to all axios failures
This commit is contained in:
parent
c9a7e6e1e3
commit
564e01eaf6
7 changed files with 19 additions and 0 deletions
|
@ -11,6 +11,7 @@ export function fetchSuggestions() {
|
|||
api(getState).get('/api/v1/accounts/suggestions').then(response => {
|
||||
dispatch(fetchSuggestionsSuccess(response.data));
|
||||
}).catch(error => {
|
||||
console.error(error);
|
||||
dispatch(fetchSuggestionsFail(error));
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue