aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-06 09:47:25 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:06:35 +0800
commitae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d (patch)
tree3880f4a347038fc28cd9fe4a7f087d8b1b62d2eb
parent506c736d4fffef0109c693c36922c573a59ccc78 (diff)
downloaddexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar.gz
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar.bz2
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar.lz
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar.xz
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.tar.zst
dexon-sol-tools-ae6f7cc4544eaa8c3bbc384d75eec0ba30a2377d.zip
feat(instant): More aggressive error reporting
-rw-r--r--packages/instant/src/util/buy_quote_updater.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/instant/src/util/buy_quote_updater.ts b/packages/instant/src/util/buy_quote_updater.ts
index 4229f2735..6191c92e3 100644
--- a/packages/instant/src/util/buy_quote_updater.ts
+++ b/packages/instant/src/util/buy_quote_updater.ts
@@ -38,14 +38,11 @@ export const buyQuoteUpdater = {
} catch (error) {
const errorMessage = assetUtils.assetBuyerErrorMessage(asset, error);
- if (_.isUndefined(errorMessage)) {
- // This is an unknown error, report it to rollbar
- errorReporter.report(error);
- }
+ errorReporter.report(error);
+ analytics.trackQuoteError(error.message ? error.message : 'other', baseUnitValue, fetchOrigin);
if (options.dispatchErrors) {
dispatch(actions.setQuoteRequestStateFailure());
- analytics.trackQuoteError(error.message ? error.message : 'other', baseUnitValue, fetchOrigin);
errorFlasher.flashNewErrorMessage(dispatch, errorMessage || 'Error fetching price, please try again');
}
return;