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

Commit

Permalink
error-handler: write an empty str and wait for flush to exit
Browse files Browse the repository at this point in the history
Credit: @zkat
Reviewed-By: @iarna
PR-URL: #17104
  • Loading branch information
zkat authored and iarna committed Jun 27, 2017
1 parent 57225d3 commit e2f815f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/error-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ function exit (code, noLog) {
// for whatever reason gets thrown away, instead of leaving the CLI open
//
// Commands that expect long-running actions should just delay `cb()`
process.exit(code)
process.stdout.write('', () => {
process.exit(code)
})
}
}

Expand Down

0 comments on commit e2f815f

Please sign in to comment.