clearer error on db failure
This commit is contained in:
parent
919ff54fd2
commit
ced892a649
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ const $db: Provider = {
|
||||||
const db = createPostgresDataSource(config);
|
const db = createPostgresDataSource(config);
|
||||||
return await db.initialize();
|
return await db.initialize();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.error('failed to initialize database connection', e);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue