From 976a3543c48964b4f149a6a7b836a6f0fb26ec11 Mon Sep 17 00:00:00 2001 From: Philipp Kief Date: Fri, 5 Jul 2024 19:25:40 +0200 Subject: [PATCH] Throw error instead of exiting with error code 1 --- src/cli/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index bce38f7..2aaa517 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -30,6 +30,6 @@ const run = async () => { try { run(); } catch (error) { - console.error(error); - process.exit(1); + console.log(error); + throw error; }