From ae7962ae5074c0dc734c5b174209d8390f677a84 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 31 Dec 2022 16:57:43 -0500 Subject: [PATCH] Better Sentry messages --- Tusker/CoreData/MastodonCachePersistentStore.swift | 2 +- Tusker/Views/Toast/ToastConfiguration.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tusker/CoreData/MastodonCachePersistentStore.swift b/Tusker/CoreData/MastodonCachePersistentStore.swift index 18c8d9fe..685c4a57 100644 --- a/Tusker/CoreData/MastodonCachePersistentStore.swift +++ b/Tusker/CoreData/MastodonCachePersistentStore.swift @@ -153,7 +153,7 @@ class MastodonCachePersistentStore: NSPersistentCloudKitContainer { loadPersistentStores { (description, error) in if let error = error { logger.error("Unable to load persistent store: \(String(describing: error), privacy: .public)") - fatalError("Unable to load persistent store") + fatalError("Unable to load persistent store: \(String(describing: error))") } if description.configuration == "Cloud" { diff --git a/Tusker/Views/Toast/ToastConfiguration.swift b/Tusker/Views/Toast/ToastConfiguration.swift index dbfef76f..6b9822b9 100644 --- a/Tusker/Views/Toast/ToastConfiguration.swift +++ b/Tusker/Views/Toast/ToastConfiguration.swift @@ -59,6 +59,7 @@ extension ToastConfiguration { switch error.type { case .invalidRequest, .invalidResponse, .invalidModel(_), .mastodonError(_): SentrySDK.capture(error: error) { scope in + scope.setFingerprint([String(describing: error)]) let crumb = Breadcrumb(level: .error, category: "error") crumb.message = title crumb.data = [