ghostty/macos/Sources/Features/App Intents/GhosttyIntentError.swift
2025-06-21 06:39:19 -07:00

12 lines
378 B
Swift

enum GhosttyIntentError: Error, CustomLocalizedStringResourceConvertible {
case appUnavailable
case surfaceNotFound
var localizedStringResource: LocalizedStringResource {
switch self {
case .appUnavailable: return "The Ghostty app isn't properly initialized."
case .surfaceNotFound: return "The terminal no longer exists."
}
}
}