Skip to content

Commit 79ee331

Browse files
authoredFeb 12, 2020
fix(server): Report original error message (#3415)
Display original error message of plugins like: karma-browserstack-launcher, karma-cbt-launcher. Fixes #3414
1 parent 1fc51b0 commit 79ee331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,12 @@ class Server extends KarmaEventEmitter {
395395
}
396396

397397
processWrapper.on('unhandledRejection', (error) => {
398-
this.log.error('UnhandledRejection')
398+
this.log.error(`UnhandledRejection: ${error.message || String(error)}`)
399399
reportError(error)
400400
})
401401

402402
processWrapper.on('uncaughtException', (error) => {
403-
this.log.error('UncaughtException')
403+
this.log.error(`UncaughtException:: ${error.message || String(error)}`)
404404
reportError(error)
405405
})
406406
}

0 commit comments

Comments
 (0)
Please sign in to comment.