INNER CODE UNIT · TypeScript
exit
zuplo/zudoku · packages/create-zudoku/index.ts:349
async function exit(reason: { command?: string }) {
console.log();
console.log("Aborting installation.");
if (reason.command) {
console.log(` ${cyan(reason.command)} has failed.`);
} else {
console.log(
`${red("Unexpected error. Please report it as a bug:")}\n`,
reason,
);
}
console.log();
await notifyUpdate();
process.exit(1);
}
run().then(notifyUpdate).catch(exit);