aboutsummaryrefslogtreecommitdiffstats
path: root/packages/kovan-faucets/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-13 00:34:05 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-13 00:48:15 +0800
commit4d30e1115f24905fb51c482abc147ffdd7d0f8ec (patch)
tree2975fd74d1776cd6bc9cde36468a761a83e2727a /packages/kovan-faucets/src
parent897cfb491cd665e4bfc592c59c2cba7d6a456dd6 (diff)
downloaddexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar.gz
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar.bz2
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar.lz
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar.xz
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.tar.zst
dexon-sol-tools-4d30e1115f24905fb51c482abc147ffdd7d0f8ec.zip
Add chai-as-promised-typescript-typings
Diffstat (limited to 'packages/kovan-faucets/src')
-rw-r--r--packages/kovan-faucets/src/ts/error_reporter.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/kovan-faucets/src/ts/error_reporter.ts b/packages/kovan-faucets/src/ts/error_reporter.ts
index 1c25dd184..6865d3893 100644
--- a/packages/kovan-faucets/src/ts/error_reporter.ts
+++ b/packages/kovan-faucets/src/ts/error_reporter.ts
@@ -12,9 +12,9 @@ export const errorReporter = {
rollbar.handleUncaughtExceptions(configs.ROLLBAR_ACCESS_KEY);
- process.on('unhandledRejection', (err: Error) => {
+ process.on('unhandledRejection', async (err: Error) => {
utils.consoleLog(`Uncaught exception ${err}. Stack: ${err.stack}`);
- this.reportAsync(err);
+ await this.reportAsync(err);
process.exit(1);
});
},