Skip to content

Commit

Permalink
unhandled handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bn-l committed Apr 4, 2024
1 parent 7a705ff commit bf9c39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf9c39c

Please sign in to comment.