From bf9c39cec66f1ac4d1a275daaacf4c35fc9c140d Mon Sep 17 00:00:00 2001 From: bn-l Date: Thu, 4 Apr 2024 22:55:45 +1100 Subject: [PATCH] unhandled handling --- source/index.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.mts b/source/index.mts index 2748446..9dc9337 100644 --- a/source/index.mts +++ b/source/index.mts @@ -11,7 +11,7 @@ import pathe from "pathe"; import wrapAnsi from "wrap-ansi"; -process.on("unhandledRejection", (error) => { +process.on("uncaughtException", (error) => { if (error instanceof Error) { console.error(`\nError: ${ error.message }\n\nIf this is a bug, report here: https://github.com/bn-l/GithubExtractorCLI/issues\n`); process.exit(1);