mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
14 lines
478 B
Swift
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."
|
|
}
|
|
}
|
|
}
|