Skip to content

Commit

Permalink
only log process exit if not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
agrathwohl committed Jan 2, 2018
1 parent 06090e2 commit 39a0533
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ process.on('uncaughtException', (err) => {
term.red(err)
})
process.on('exit', (code) => {
term.red(`About to exit with code: ${code}`)
if (code !== 0) {
term.red(`\n\nAbout to exit with code: ${code}\n\n`)
}
})

term.bold.red(header)
Expand Down

0 comments on commit 39a0533

Please sign in to comment.