[error-handler] [m]: update error handler output
This commit is contained in:
@@ -139,17 +139,20 @@ async function run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Main CLI execution workflow
|
//Main CLI execution workflow
|
||||||
run()
|
run().catch((error) => {
|
||||||
.then(`${chalk.greenBright("Project Installed Sucess")}`)
|
console.log(error.name);
|
||||||
.catch((error) => {
|
if (error.install) {
|
||||||
if (error.command) {
|
|
||||||
console.log(`${chalk.cyan("Error on Create App")}`);
|
|
||||||
} else {
|
|
||||||
console.log(
|
|
||||||
`${chalk.red("Unexpected Erro. Please report it as a bug")}`
|
|
||||||
);
|
|
||||||
console.log(error);
|
|
||||||
}
|
|
||||||
console.log();
|
console.log();
|
||||||
process.exit(1);
|
console.log(
|
||||||
});
|
`${chalk.redBright("Error on Create App :")}${chalk.yellow(
|
||||||
|
error.message.toString()
|
||||||
|
)}`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
console.log(`${chalk.red("Unexpected Error. Please report it as a bug")}`);
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
console.log();
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user