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

Commit

Permalink
fix: hide EEXIT
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent 2d98234 commit 69a2262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ 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') {
displayError(err)
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 69a2262

Please sign in to comment.