From a16a72e3880bdf515747221387b37b0fb01ad576 Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Wed, 7 Aug 2024 12:30:37 +0800 Subject: [PATCH] Fixed error error --- api/src/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/db.ts b/api/src/db.ts index 4a3bcae..caefbe5 100644 --- a/api/src/db.ts +++ b/api/src/db.ts @@ -14,7 +14,7 @@ export default async function buildDBClient(): Promise { logger.info('Connected successfully to MongoDB'); return db; } catch (error) { - logger.error('Failed to connect to MongoDB', error); + logger.error(`Failed to connect to MongoDB: ${error}`); throw error; } }