Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Commit

Permalink
fix: log unhandled promise exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 1, 2016
1 parent 8c9dbc3 commit cdd5288
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env node
'use strict'

process.on('unhandledRejection', function (reason, p) {
console.log('Possibly Unhandled Rejection at: Promise ', p, ' reason: ',
reason)
})

const meow = require('meow')
const processFiles = require('./process-files')
const normalizeNewline = require('normalize-newline')
Expand Down

0 comments on commit cdd5288

Please sign in to comment.