Better error log reporting & handling (#4128)

This commit is contained in:
Jaco Greeff
2017-01-11 17:02:39 +01:00
committed by GitHub
parent b54709605a
commit 32dbf9958e
3 changed files with 29 additions and 4 deletions

View File

@@ -75,6 +75,9 @@ export function personalAccountsInfo (accountsInfo) {
return wallet;
});
})
.catch(() => {
return [];
})
.then((_wallets) => {
_wallets.forEach((wallet) => {
const owners = wallet.owners.map((o) => o.address);
@@ -96,6 +99,10 @@ export function personalAccountsInfo (accountsInfo) {
dispatch(_personalAccountsInfo(data));
dispatch(attachWallets(wallets));
dispatch(fetchBalances());
})
.catch((error) => {
console.warn('personalAccountsInfo', error);
throw error;
});
};
}