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) +}) 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) +})