fix: Add error message on initialization failed

This commit is contained in:
Mizunashi Mana 2023-07-16 20:13:49 +09:00
parent e5360536f3
commit b9db50de08

View File

@ -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);
}