From bc6ad0a7ff5130dcdd9a74bd61d07e9506a10a92 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sun, 28 Jan 2018 08:31:43 -0800 Subject: [PATCH] fix: hide sigints --- src/errors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {