Archived
2
0
Fork 0

Add console.error to all axios failures

This commit is contained in:
Eugen Rochko 2016-10-18 00:42:04 +02:00
parent c9a7e6e1e3
commit 564e01eaf6
7 changed files with 19 additions and 0 deletions

View file

@ -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));
});
};