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

Commit

Permalink
fix: hide sigints
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent 7c98eb1 commit bc6ad0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export default (e: IEventEmitter) => {
const cli: typeof CLI = require('.').cli
if (err.code === 'EPIPE') return
if (err['cli-ux'] && typeof err['cli-ux'].exit === 'number') {
if (err.code !== 'EEXIT') displayError(err)
if (err.code === 'ESIGINT') cli.action.stop(chalk.yellowBright('!'))
else if (err.code !== 'EEXIT') displayError(err)
await cli.done().catch(cli.debug)
process.exit(err['cli-ux'].exit as number)
} else {
Expand Down

0 comments on commit bc6ad0a

Please sign in to comment.