Make Sendable.

This commit is contained in:
Brent Simmons committed 2025-11-17 11:50:41 -08:00
1 parent 315ed56b6b
commit dd691c4a91
1 file changed
+5 -3
+5 -3
View File
@@ -10,12 +10,14 @@ import AppKit
import Account
import os.log
struct ErrorHandler {
nonisolated struct ErrorHandler: Sendable {
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ErrorHandler")
public static func present(_ error: Error) {
NSApplication.shared.presentError(error)
@Sendable public static func present(_ error: Error) {
Task { @MainActor in
NSApplication.shared.presentError(error)
}
}
public static func log(_ error: Error) {