From 2b093d104c19bd59b4baa3060b3beb1122ae3150 Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Thu, 29 Aug 2019 13:36:48 +0900 Subject: [PATCH 1/2] Remove unhandled promise error --- accounts/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/accounts/index.js b/accounts/index.js index 573a292..484f745 100644 --- a/accounts/index.js +++ b/accounts/index.js @@ -73,4 +73,7 @@ // Attach the web sockets server to the web server notifServer.attach(httpServer) -})() +})().catch(err => { + console.error(err) + process.exit(1) +}) From 4b9ba34be97a6dc8b6e7d8118c5ca139121fddb4 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Thu, 29 Aug 2019 14:19:55 +0200 Subject: [PATCH 2/2] remove unhandled promise error (all dojo modules) --- pushtx/index-orchestrator.js | 5 ++++- pushtx/index.js | 5 ++++- tracker/index.js | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pushtx/index-orchestrator.js b/pushtx/index-orchestrator.js index 3123de5..0151b09 100644 --- a/pushtx/index-orchestrator.js +++ b/pushtx/index-orchestrator.js @@ -46,4 +46,7 @@ const orchestrator = new Orchestrator() orchestrator.start() -})() +})().catch(err => { + console.error(err) + process.exit(1) +}) diff --git a/pushtx/index.js b/pushtx/index.js index 865bcaa..c951d63 100644 --- a/pushtx/index.js +++ b/pushtx/index.js @@ -54,4 +54,7 @@ // Start the http server httpServer.start() -})() +})().catch(err => { + console.error(err) + process.exit(1) +}) diff --git a/tracker/index.js b/tracker/index.js index 54d2285..3cf5420 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -37,4 +37,7 @@ const tracker = new Tracker() tracker.start() -})() +})().catch(err => { + console.error(err) + process.exit(1) +})