Skip to content

Commit 82fc50a

Browse files
committed
set appendCausedBy to true by default when handling ios crashes
1 parent f2c2ed0 commit 82fc50a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry-kotlin-multiplatform/src/appleMain/kotlin/io/sentry/kotlin/multiplatform/nsexception/SentryUnhandledExceptions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public fun setSentryUnhandledExceptionHook(): Unit = wrapUnhandledExceptionHook
6363
// 1. Write a crash report to disk with ALL synced scope data
6464
// 2. Include tags, user, context, breadcrumbs, etc.
6565
// 3. The crash will be sent on next app launch
66-
handler.invoke(throwable.asNSException())
66+
handler.invoke(throwable.asNSException(appendCausedBy = true))
6767
} else {
68-
// Fallback to current approach if handler not available
68+
// Fallback to old approach if handler not available
6969
val envelope = throwable.asSentryEnvelope()
7070
InternalSentrySDK.storeEnvelope(envelope as objcnames.classes.SentryEnvelope)
7171
CocoapodsSentrySDK.configureScope { scope ->

0 commit comments

Comments
 (0)