aboutsummaryrefslogtreecommitdiffstats
path: root/packages/kovan-faucets/src/ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/kovan-faucets/src/ts')
-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);
});
},