aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-13 06:50:13 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-13 06:56:01 +0800
commitac5588c7c436e2540f87e432446e103d35c9221a (patch)
tree75fb70ebf9cfb0aaa3450610f2072a43c3b2f1bc /packages/website/ts/blockchain.ts
parentddb70a89ad99527e03844d23e7c0f3522e98a602 (diff)
downloaddexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar.gz
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar.bz2
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar.lz
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar.xz
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.tar.zst
dexon-sol-tools-ac5588c7c436e2540f87e432446e103d35c9221a.zip
Make error reporter not return a promise and add more environment possibilities
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index 0e6698318..868ffad03 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -571,7 +571,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)) {
@@ -683,7 +683,7 @@ export class Blockchain {
// 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;
@@ -915,7 +915,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);
}
}