diff --git a/Sources/PrivacyStats/PrivacyStats.swift b/Sources/PrivacyStats/PrivacyStats.swift index 168b04ff7..26875d66b 100644 --- a/Sources/PrivacyStats/PrivacyStats.swift +++ b/Sources/PrivacyStats/PrivacyStats.swift @@ -48,6 +48,10 @@ public enum PrivacyStatsError: CustomNSError { } } + public var errorUserInfo: [String: Any] { + [NSUnderlyingErrorKey: underlyingError] + } + public var underlyingError: Error { switch self { case .failedToFetchPrivacyStatsSummary(let error),