chore(*): use prettier for formatting
This commit is contained in:
parent
6c659fe1d0
commit
ce869012ef
73 changed files with 1393 additions and 794 deletions
|
@ -1,5 +1,8 @@
|
|||
export const handleExitError = (err, type = 'Unhandled error') => {
|
||||
const isExit = err?.name === 'ExitPromptError' || err?.code === 'ERR_CANCELED' || err?.message?.includes('SIGINT');
|
||||
const isExit =
|
||||
err?.name === 'ExitPromptError' ||
|
||||
err?.code === 'ERR_CANCELED' ||
|
||||
err?.message?.includes('SIGINT');
|
||||
|
||||
if (isExit) {
|
||||
console.log('\n👋 Exiting. Cya!\n');
|
||||
|
@ -8,4 +11,4 @@ export const handleExitError = (err, type = 'Unhandled error') => {
|
|||
|
||||
console.error(`❌ ${type}:`, err);
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue