diff --git a/dist/index.js b/dist/index.js index 00828af..a00248a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38,5 +38,7 @@ class App { } } const app = new App(); -app.startCronJob(); +app.startCronJob().catch((error) => { + console.error("Error in app:", error.message); +}); // app.startWebServer(); diff --git a/src/index.ts b/src/index.ts index 31e9146..53a61d4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,5 +48,7 @@ class App { const app = new App(); -app.startCronJob(); +app.startCronJob().catch((error) => { + console.error("Error in app:", error.message); +}); // app.startWebServer();