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 = [