From 2b093d104c19bd59b4baa3060b3beb1122ae3150 Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Thu, 29 Aug 2019 13:36:48 +0900 Subject: [PATCH] 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) +})