From 90d599ef8dace1ff58ec308bc29055f33eda56cf Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 12 Mar 2026 19:41:06 -0700 Subject: [PATCH] Add helper method for creating userInfo for error log notification. --- .../ErrorLog/Sources/ErrorLog/ErrorLogNotification.swift | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ] + } }