Files
Termind/Frameworks/TermindDomain/Sessions/TerminalTransportError.swift
T
Kaede Akino 9738605dd3 feat(terminal): add Mosh and Eternal Terminal transports
Add SSH-authenticated transports with independent settings, protocol-aware menus and snippets, and tmux session persistence.

Restore eligible iOS workspaces from encrypted transport checkpoints without adding a macOS recovery entry. Include schema migrations and regression coverage.
2026-10-16 08:36:56 +08:00

22 lines
1023 B
Swift

import Foundation
public nonisolated enum TerminalTransportError: LocalizedError, Sendable {
case invalidCheckpoint, unsupportedRoute, bootstrapFailed, unreachable, sessionFailed, suspended
public var errorDescription: String? {
switch self {
case .invalidCheckpoint:
String(localized: "The saved terminal session cannot be restored.")
case .unsupportedRoute:
String(localized: "This terminal transport is unavailable for this connection.")
case .bootstrapFailed:
String(localized: "Unable to start the terminal server. Check that it is installed on the host.")
case .unreachable:
String(localized: "The terminal server did not respond. Check the transport port and firewall.")
case .sessionFailed:
String(localized: "The terminal session cannot continue. Open a new session to connect again.")
case .suspended:
String(localized: "The terminal session is suspended.")
}
}
}