Fixed error error

This commit is contained in:
Declan Chidlow 2024-08-07 12:30:37 +08:00
parent 5ffe0a9434
commit a16a72e388

View file

@ -14,7 +14,7 @@ export default async function buildDBClient(): Promise<Db> {
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;
}
}