From a507a697453727daf3c0c567f6bdb2d444ddf706 Mon Sep 17 00:00:00 2001 From: Borewit Date: Sat, 1 Feb 2020 11:34:09 +0100 Subject: [PATCH] fix(server): Report original error message Display original error message of plugins like: karma-browserstack-launcher, karma-cbt-launcher. Fixes #3414 --- lib/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index 760b2694f..8b1889bb1 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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) }) }