Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit bc6ad0a

Browse files
committed
fix: hide sigints
1 parent 7c98eb1 commit bc6ad0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/errors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export default (e: IEventEmitter) => {
147147
const cli: typeof CLI = require('.').cli
148148
if (err.code === 'EPIPE') return
149149
if (err['cli-ux'] && typeof err['cli-ux'].exit === 'number') {
150-
if (err.code !== 'EEXIT') displayError(err)
150+
if (err.code === 'ESIGINT') cli.action.stop(chalk.yellowBright('!'))
151+
else if (err.code !== 'EEXIT') displayError(err)
151152
await cli.done().catch(cli.debug)
152153
process.exit(err['cli-ux'].exit as number)
153154
} else {

0 commit comments

Comments
 (0)