From 935ad72936abcce7ac3fee627ad75c4cea584844 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sat, 15 Feb 2025 02:53:08 +0100 Subject: [PATCH] fix: :rotating_light: Throw new error instead of using process.exit() --- config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ts b/config.ts index 7f72f5bb..75a265ec 100644 --- a/config.ts +++ b/config.ts @@ -42,7 +42,7 @@ if (!parsed.success) { console.info(errorMessage); - process.exit(1); + throw new Error("Configuration file is invalid."); } const exportedConfig = parsed.data;