From 08442edb1240369bd9da0414107d4d1ae97d6861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Mon, 20 May 2024 12:20:09 +0200 Subject: [PATCH] [mod] main:Promise-Rejections behandeln --- source/main.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/main.ts b/source/main.ts index 106c8fd..446dc0f 100644 --- a/source/main.ts +++ b/source/main.ts @@ -252,4 +252,15 @@ async function main( } -main(process.argv.slice(2)); +( + main(process.argv.slice(2)) + .then( + () => { + } + ) + .catch( + (error) => { + process.stderr.write(String(error) + "\n"); + } + ) +);