diff --git a/apps/node/src/app.ts b/apps/node/src/app.ts index fdcf456a..f103f00d 100644 --- a/apps/node/src/app.ts +++ b/apps/node/src/app.ts @@ -18,7 +18,7 @@ async function run() { assert(APP, 'Specify the application to start with "APP=appname pnpm start"'); switch (APP) { case "template": - void (await Template.Main(process.env)); + await Template.Main(process.env); return "Example template app running"; case "indexer": void (await Indexer.Main(Indexer.envToConfig(process.env), logger)); @@ -36,4 +36,6 @@ async function run() { run() .then((x) => x && logger.info({ at: "app", message: x })) - .catch(console.log); + .catch((error) => { + logger.error(error); + });