diff options
author | Francesco Agosti <francesco.agosti93@gmail.com> | 2018-07-14 04:35:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 04:35:01 +0800 |
commit | ab5cd95cccff7b776d168036394203261b354aae (patch) | |
tree | d011565b1c95d4682381f8f573afadf98911e396 /packages/website/ts/blockchain.ts | |
parent | 26363931ed8ba35a55073d00c4fe128c7e616acc (diff) | |
parent | b70f5d1a1efcb3b07673aa3b4bc7bc2318f55462 (diff) | |
download | dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.gz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.bz2 dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.lz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.xz dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.tar.zst dexon-sol-tools-ab5cd95cccff7b776d168036394203261b354aae.zip |
Merge pull request #867 from 0xProject/bug/website/txhash-error
Only upload sourcemaps to rollbar on live deploys, and handle NaN error by using 0
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 93534e143..e8168d975 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -564,7 +564,7 @@ export class Blockchain { configs.DEFAULT_TRACKED_TOKEN_SYMBOLS, )}) not found in tokenRegistry: ${JSON.stringify(tokenRegistryTokens)}`, ); - await errorReporter.reportAsync(err); + errorReporter.report(err); return; } if (_.isEmpty(trackedTokensByAddress)) { @@ -675,8 +675,7 @@ export class Blockchain { // Note: it's not entirely clear from the documentation which // errors will be thrown by `watch`. For now, let's log the error // to rollbar and stop watching when one occurs - // tslint:disable-next-line:no-floating-promises - errorReporter.reportAsync(err); // fire and forget + errorReporter.report(err); // fire and forget return; } else { const decodedLog = decodedLogEvent.log; @@ -908,7 +907,7 @@ export class Blockchain { if (_.includes(errMsg, 'not been deployed to detected network')) { throw new Error(BlockchainCallErrs.ContractDoesNotExist); } else { - await errorReporter.reportAsync(err); + errorReporter.report(err); throw new Error(BlockchainCallErrs.UnhandledError); } } |