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

Commit

Permalink
Merge pull request #6155 from darkdh/cr54-warning-stack
Browse files Browse the repository at this point in the history
Print stack to trace where the warning comes from
  • Loading branch information
bbondy authored Dec 15, 2016
2 parents 0d17aec + a77be92 commit 814b46b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ process.on('unhandledRejection', function (error, promise) {
handleUncaughtError(error)
})

process.on('warning', warning => console.warn(warning.stack))

if (process.platform === 'win32') {
require('./windowsInit')
}
Expand Down

0 comments on commit 814b46b

Please sign in to comment.