From 1ddc463c30e8f55fa8309785064ea9fefa4fc965 Mon Sep 17 00:00:00 2001 From: Dani Tseitlin Date: Sat, 28 Sep 2024 11:22:35 +0300 Subject: [PATCH] . --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4344421..4a586c6 100644 --- a/src/index.js +++ b/src/index.js @@ -77,7 +77,7 @@ exports['default'] = () => { }, async reportLogs(testId, level, message, time, attachment) { if(message !== undefined) { - const isJSON = (msg) => { return this.reporter.client.isJSON(msg) || Array.isArray(msg); } + const isJSON = (msg) => { return this.reporter.client.isJSON(msg) || Array.isArray(msg); }; const isException = isJSON(message) && JSON.parse(message).errMsg !== undefined; //If the log is a stacktrace, and we want to focus on printing the error message itself. if(isException) message = JSON.parse(message).errMsg;