Skip to content

Commit

Permalink
exit app on mongo connection issue (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Ludek Novy <[email protected]>
  • Loading branch information
ludeknovy and nvldk authored Nov 18, 2020
1 parent 1fb2d5e commit 31dac8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/db/mongoUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class MongoUtils {
logger.info('Successfully connected to MongoDB');
} catch (error) {
logger.error(`Error while connecting to MongoDB: ${error}`);
process.exit(1);
}
}

Expand Down

0 comments on commit 31dac8b

Please sign in to comment.