aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/heap.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-12-04 06:24:58 +0800
committerGitHub <noreply@github.com>2018-12-04 06:24:58 +0800
commit50df67e7511460f051f91785bb4384485077ef60 (patch)
tree3caa4fac28a2af99e7e7d0beff7a661d26f8665e /packages/instant/src/util/heap.ts
parentf076cdb8329693e9d7351ec88d2ac01ad42a2a3a (diff)
parent91b0fd951708b0fff0733c2e1eed45a403f3cc73 (diff)
downloaddexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar.gz
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar.bz2
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar.lz
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar.xz
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.tar.zst
dexon-sol-tools-50df67e7511460f051f91785bb4384485077ef60.zip
Merge pull request #1295 from 0xProject/feature/instant/rollbar-env
[instant] Rollbar
Diffstat (limited to 'packages/instant/src/util/heap.ts')
-rw-r--r--packages/instant/src/util/heap.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/util/heap.ts b/packages/instant/src/util/heap.ts
index 7c53c9918..279ff3059 100644
--- a/packages/instant/src/util/heap.ts
+++ b/packages/instant/src/util/heap.ts
@@ -5,6 +5,7 @@ import * as _ from 'lodash';
import { HEAP_ANALYTICS_ID } from '../constants';
import { AnalyticsEventOptions, AnalyticsUserOptions } from './analytics';
+import { errorReporter } from './error_reporter';
export type EventProperties = ObjectMap<string | number>;
@@ -107,8 +108,8 @@ export const heapUtil = {
heapFunctionCall(curHeap);
} catch (e) {
// We never want analytics to crash our React component
- // TODO(sk): error reporter here
logUtils.log('Analytics error', e);
+ errorReporter.report(e);
}
}
},