From 09550158ad989472c96119e65dfb779a4dd07ec8 Mon Sep 17 00:00:00 2001 From: Nikita Evdokimov Date: Fri, 23 Aug 2024 15:33:42 +0300 Subject: [PATCH] ISSUE-639: Don't set stack trace --- .../kaspersky/kaspresso/failure/FailureLoggingProviderImpl.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/failure/FailureLoggingProviderImpl.kt b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/failure/FailureLoggingProviderImpl.kt index c5f54ea21..704a10f59 100644 --- a/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/failure/FailureLoggingProviderImpl.kt +++ b/kaspresso/src/main/kotlin/com/kaspersky/kaspresso/failure/FailureLoggingProviderImpl.kt @@ -92,9 +92,8 @@ class FailureLoggingProviderImpl( viewMatcher?.let { message.append("\nView description: ${it.describe()}") } RuntimeException(message.toString()) } - else -> this + else -> RuntimeException() } - newError.stackTrace = Thread.currentThread().stackTrace newError.addSuppressed(this) return newError