Tweak timeline marker error reporting

This commit is contained in:
Shadowfacts 2023-02-26 14:09:58 -05:00
parent 007d5d6791
commit a864f4e344
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
} catch {
stateRestorationLogger.error("TimelineViewController: failed to update timeline marker: \(String(describing: error))")
let event = Event(error: error)
event.message = SentryMessage(formatted: "Failed to update timeline marker")
event.message = SentryMessage(formatted: "Failed to update timeline marker: \(String(describing: error))")
SentrySDK.capture(event: event)
}
}
@ -552,7 +552,7 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
} catch {
stateRestorationLogger.error("TimelineViewController: failed to load from timeline marker: \(String(describing: error))")
let event = Event(error: error)
event.message = SentryMessage(formatted: "Failed to load from timeline marker")
event.message = SentryMessage(formatted: "Failed to load from timeline marker: \(String(describing: error))")
SentrySDK.capture(event: event)
return false
}