chore(cli): dry up link + post tag prompt
This commit is contained in:
parent
efe701f939
commit
555ba74bf6
8 changed files with 75 additions and 104 deletions
|
@ -1,14 +0,0 @@
|
|||
export const handleExitError = (err, type = "Unhandled error") => {
|
||||
const isExit =
|
||||
err?.name === "ExitPromptError" ||
|
||||
err?.code === "ERR_CANCELED" ||
|
||||
err?.message?.includes("SIGINT");
|
||||
|
||||
if (isExit) {
|
||||
console.log("\n👋 Exiting. Cya!\n");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
console.error(`❌ ${type}:`, err);
|
||||
process.exit(1);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue