Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
danitseitlin committed Sep 28, 2024
1 parent 44b892a commit 1ddc463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ddc463

Please sign in to comment.