Skip to content

Commit

Permalink
Adding better exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mkdbns committed Jul 8, 2017
1 parent 4629a8e commit 6bfe8e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ const {
//
const abort = function(err) {
log.error(err)
//
// We set a timeout here to
// allow the log streams to finish
// writing.
//
setTimeout(function() {
process.exit(1)
}, 3000)
Expand Down

0 comments on commit 6bfe8e2

Please sign in to comment.