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/util/heap.ts | |
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/util/heap.ts')
-rw-r--r-- | packages/instant/src/util/heap.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/util/heap.ts b/packages/instant/src/util/heap.ts index 78ec3b3cc..10670b278 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 interface HeapAnalytics { loaded: boolean; @@ -105,8 +106,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); } } }, |