Fixed error error
This commit is contained in:
parent
5ffe0a9434
commit
a16a72e388
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue