Skip to content

Commit

Permalink
fix(server): Report original error message
Browse files Browse the repository at this point in the history
Display original error message of plugins like: karma-browserstack-launcher, karma-cbt-launcher.

Fixes #3414
  • Loading branch information
Borewit committed Feb 1, 2020
1 parent 1fc51b0 commit a507a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ class Server extends KarmaEventEmitter {
}

processWrapper.on('unhandledRejection', (error) => {
this.log.error('UnhandledRejection')
this.log.error(`UnhandledRejection: ${error.message}`)
reportError(error)
})

processWrapper.on('uncaughtException', (error) => {
this.log.error('UncaughtException')
this.log.error(`UncaughtException: ${error.message}`)
reportError(error)
})
}
Expand Down

0 comments on commit a507a69

Please sign in to comment.