diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 05:18:47 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 05:18:47 +0800 |
commit | 934570d12fae9c67ae18fc914577f02a51af3bca (patch) | |
tree | f2d30a259d529338f22aa647f27dc55c2cee3c43 /packages/instant/src/redux | |
parent | 748e3c0c5358b99f15baf4bf95da027c9b83eb89 (diff) | |
download | dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar.gz dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar.bz2 dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar.lz dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar.xz dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.tar.zst dexon-sol-tools-934570d12fae9c67ae18fc914577f02a51af3bca.zip |
Explicit error reporting
Diffstat (limited to 'packages/instant/src/redux')
-rw-r--r-- | packages/instant/src/redux/async_data.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts index 5d30388b8..29d441c75 100644 --- a/packages/instant/src/redux/async_data.ts +++ b/packages/instant/src/redux/async_data.ts @@ -9,6 +9,7 @@ import { assetUtils } from '../util/asset'; import { buyQuoteUpdater } from '../util/buy_quote_updater'; import { coinbaseApi } from '../util/coinbase_api'; import { errorFlasher } from '../util/error_flasher'; +import { errorReporter } from '../util/error_reporter'; import { actions } from './actions'; import { State } from './reducer'; @@ -22,6 +23,7 @@ export const asyncData = { const errorMessage = 'Error fetching ETH/USD price'; errorFlasher.flashNewErrorMessage(dispatch, errorMessage); dispatch(actions.updateEthUsdPrice(BIG_NUMBER_ZERO)); + errorReporter.report(e); } }, fetchAvailableAssetDatasAndDispatchToStore: async (state: State, dispatch: Dispatch) => { @@ -36,6 +38,7 @@ export const asyncData = { errorFlasher.flashNewErrorMessage(dispatch, errorMessage); // On error, just specify that none are available dispatch(actions.setAvailableAssets([])); + errorReporter.report(e); } }, fetchAccountInfoAndDispatchToStore: async ( |