Skip to content

Commit ae75324

Browse files
authored
Improvement/update signal fault message (#129)
* Update BacktraceCrashReporter.swift Update FaultMessage Attribute to return Termination Signal name * Update Podfile.lock Upgrade COCOAPODS to ver 1.15.2
1 parent bea9729 commit ae75324

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ SPEC CHECKSUMS:
2929

3030
PODFILE CHECKSUM: 2b7d3c7f6716bfb4ee9ab8a1ee475ca57c8165e9
3131

32-
COCOAPODS: 1.11.3
32+
COCOAPODS: 1.15.2

Sources/Public/BacktraceCrashReporter.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Foundation
22
import CrashReporter
3+
import Darwin
34

45

56
/// A wrapper around `PLCrashReporter`.
@@ -34,7 +35,7 @@ extension BacktraceCrashReporter: CrashReporting {
3435
return
3536
}
3637

37-
attributesProvider.set(faultMessage: "siginfo_t.si_signo: \(signalInfo.si_signo)")
38+
attributesProvider.set(faultMessage: "\(String(cString: strsignal(signalInfo.si_signo)))")
3839

3940
try? AttributesStorage.store(attributesProvider.dynamicAttributes, fileName: BacktraceCrashReporter.crashName)
4041
try? AttachmentsStorage.store(attributesProvider.allAttachments, fileName: BacktraceCrashReporter.crashName)

0 commit comments

Comments
 (0)