From efab55d4c8ebd3ae37917969c01cdf525829fa76 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Tue, 10 Dec 2019 00:18:21 -0500 Subject: Fix reported license and update changelog --- src/util/config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/util/config.ts') diff --git a/src/util/config.ts b/src/util/config.ts index 6f8b60b..34a9a46 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -32,7 +32,6 @@ export const handleShutdown = (mongo: MongoClient, server: Server) => ( }) ); }) - .finally(() => { - process.exit(0); - }); + .then(() => process.exit(0)) + .catch(() => process.exit(1)); }; -- cgit