diff --git a/Sources/AutomergeRepo/Sync/SyncV1Msg+Errors.swift b/Sources/AutomergeRepo/Sync/SyncV1Msg+Errors.swift index 25b70ef..70be599 100644 --- a/Sources/AutomergeRepo/Sync/SyncV1Msg+Errors.swift +++ b/Sources/AutomergeRepo/Sync/SyncV1Msg+Errors.swift @@ -4,14 +4,23 @@ public extension SyncV1Msg { enum Errors: Sendable { public struct Timeout: Sendable, LocalizedError { public var errorDescription: String = "Task timed out before completion" + public init(errorDescription: String) { + self.errorDescription = errorDescription + } } public struct SyncComplete: Sendable, LocalizedError { public var errorDescription: String = "The synchronization process is complete" + public init(errorDescription: String) { + self.errorDescription = errorDescription + } } public struct ConnectionClosed: Sendable, LocalizedError { public var errorDescription: String = "The websocket task was closed and/or nil" + public init(errorDescription: String) { + self.errorDescription = errorDescription + } } public struct InvalidURL: Sendable, LocalizedError {