fix: Add error message on initialization failed
This commit is contained in:
parent
e5360536f3
commit
b9db50de08
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ export async function masterMain() {
|
|||
config = loadConfigBoot();
|
||||
await connectDb();
|
||||
} catch (e) {
|
||||
bootLogger.error("Fatal error occurred during initialization", null, true);
|
||||
bootLogger.error(
|
||||
`Fatal error occurred during initialization: ${e}`,
|
||||
null,
|
||||
true,
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue