Skip to content

Commit

Permalink
fix(server): Report original error message (karma-runner#3415)
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 karma-runner#3414
  • Loading branch information
Borewit committed Feb 12, 2020
1 parent 1fc51b0 commit 79ee331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server.js
Expand Up @@ -395,12 +395,12 @@ class Server extends KarmaEventEmitter {
}

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

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

0 comments on commit 79ee331

Please sign in to comment.