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 3a257f4 commit 5eef336
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,22 @@ import ora, { Ora } from "ora";
import pathe from "pathe";
import wrapAnsi from "wrap-ansi";


process.on("unhandledRejection", (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`);
}
else {
console.error(`\nError: ${ error }\n\nIf this is a bug, report here: https://github.com/bn-l/GithubExtractorCLI/issues\n`);
}
});

// ? Note:
// - The cli's help text is the main documentation. All changes should begin there and then be
// copied to the README.

// Todo:
// - option to skip initial dir scan
// - list with or without owner/repo prefix
// - Quick SVG based video.
// - Longer playable .cast for website.
Expand Down

0 comments on commit 5eef336

Please sign in to comment.