// SwiftFormatterError.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT #if os(macOS) || os(Linux) /// Errors raised while formatting snippet source with `swift-format`. public enum SwiftFormatterError: Error { /// No `swift-format` executable could be located (no Xcode / toolchain, or /// an older toolchain that predates the bundled formatter). case toolNotFound /// `swift-format` exited non-zero — usually a parse error in the source. case formatFailed(exitCode: Int32, stderr: String) /// A filesystem or process I/O failure. case ioFailed(String) } #endif