terminate if app init fails

This commit is contained in:
Simon Larsen 2023-09-27 20:48:50 +01:00
parent 08411211ab
commit 3576e86532
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
15 changed files with 15 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -18,6 +18,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -98,6 +98,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -18,6 +18,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -1024,4 +1024,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -47,4 +47,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -51,4 +51,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -27,6 +27,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -46,4 +46,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -54,4 +54,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -45,4 +45,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -23,6 +23,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;

View File

@ -24,4 +24,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -126,4 +126,5 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });

View File

@ -78,6 +78,7 @@ const init: () => Promise<void> = async (): Promise<void> => {
init().catch((err: Error) => { init().catch((err: Error) => {
logger.error(err); logger.error(err);
process.exit(1);
}); });
export default app; export default app;