1 2 3 4 5 6 7 8 9 10 11 12
extension Ghostty { /// Possible errors from internal Ghostty calls. enum Error: Swift.Error, CustomLocalizedStringResourceConvertible { case apiFailed var localizedStringResource: LocalizedStringResource { switch self { case .apiFailed: return "libghostty API call failed" } } } }