clearer error on db failure

This commit is contained in:
dakkar 2025-05-30 11:20:08 +01:00
parent 919ff54fd2
commit ced892a649

View file

@ -28,7 +28,7 @@ const $db: Provider = {
const db = createPostgresDataSource(config);
return await db.initialize();
} catch (e) {
console.log(e);
console.error('failed to initialize database connection', e);
throw e;
}
},