diff --git a/src/errors.ts b/src/errors.ts index f520e780..ad427eb2 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -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 {