Adding missing error cause messages.

This commit is contained in:
softsimon
2020-10-28 11:00:48 +07:00
parent 29ff029b07
commit 5feaff130f
8 changed files with 14 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ export async function checkDbConnection() {
logger.info('Database connection established.');
connection.release();
} catch (e) {
logger.err('Could not connect to database.');
logger.err('Could not connect to database: ' + e.message || e);
process.exit(1);
}
}