diff --git a/Modules/ErrorLog/Sources/ErrorLog/ErrorLogNotification.swift b/Modules/ErrorLog/Sources/ErrorLog/ErrorLogNotification.swift index 296eb72b4..2a4f5085f 100644 --- a/Modules/ErrorLog/Sources/ErrorLog/ErrorLogNotification.swift +++ b/Modules/ErrorLog/Sources/ErrorLog/ErrorLogNotification.swift @@ -19,4 +19,12 @@ public struct ErrorLogUserInfoKey { public static let sourceName = "sourceName" public static let sourceID = "sourceID" // 0-99 are AccountType raw values. 100 and greater are for other components. public static let errorMessage = "errorMessage" + + public static func userInfo(sourceName: String, sourceID: Int, errorMessage: String) -> [String: Any] { + [ + Self.sourceName: sourceName, + Self.sourceID: sourceID, + Self.errorMessage: errorMessage + ] + } }