Skip to content

Commit

Permalink
feat(karma-server): added log to the server.js for uncaught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbullock committed Nov 13, 2019
1 parent b71b5ac commit 773b665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ class Server extends KarmaEventEmitter {
const reportError = (error) => {
process.emit('infrastructure_error', error)
disconnectBrowsers(1)
this.log.error(error)
}

processWrapper.on('unhandledRejection', (error) => {
Expand Down

0 comments on commit 773b665

Please sign in to comment.