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

Commit

Permalink
fix: hide EEXIT errors from logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 7, 2018
1 parent af8f9ab commit 266b7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const handle = (err: any) => {
if (err.oclif && typeof err.render === 'function') message = err.render()
if (message) console.error(message)
process.exitCode = (err.oclif && err.oclif.exit !== undefined) ? err.oclif.exit : 1
if (config.errorLogger) {
if (config.errorLogger && err.code !== 'EEXIT') {
config.errorLogger.log(stack)
config.errorLogger.flush()
.catch(console.error)
Expand Down

0 comments on commit 266b7f6

Please sign in to comment.