Skip to content

Improvement/update signal fault message #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 2b7d3c7f6716bfb4ee9ab8a1ee475ca57c8165e9

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
3 changes: 2 additions & 1 deletion Sources/Public/BacktraceCrashReporter.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation
import CrashReporter
import Darwin


/// A wrapper around `PLCrashReporter`.
Expand Down Expand Up @@ -34,7 +35,7 @@ extension BacktraceCrashReporter: CrashReporting {
return
}

attributesProvider.set(faultMessage: "siginfo_t.si_signo: \(signalInfo.si_signo)")
attributesProvider.set(faultMessage: "\(String(cString: strsignal(signalInfo.si_signo)))")

try? AttributesStorage.store(attributesProvider.dynamicAttributes, fileName: BacktraceCrashReporter.crashName)
try? AttachmentsStorage.store(attributesProvider.allAttachments, fileName: BacktraceCrashReporter.crashName)
Expand Down
Loading