summaryrefslogtreecommitdiff
path: root/macos/Sources/Ghostty/Ghostty.Error.swift
blob: 66f6857bfea3bee6fa71192b7aeac705e51cc239 (plain)
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"
            }
        }
    }
}