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

14 lines
478 B
Swift

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