Skip to content

Commit 1e10709

Browse files
authored
Fix: Appends error message in error backtrace for Observability (#39)
1 parent 158cce4 commit 1e10709

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testObservability.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class TestObservability {
360360
if (eventData.status === 'fail' && eventData.lastError) {
361361
testData.failure = [
362362
{
363-
'backtrace': [eventData.lastError.stack]
363+
'backtrace': [stripAnsi(eventData.lastError.message), eventData.lastError.stack]
364364
}
365365
];
366366
testData.failure_reason = eventData.lastError ? stripAnsi(eventData.lastError.message) : null;

0 commit comments

Comments
 (0)