b6fdee8bfc
Consolidated release: the cross-platform Linux port (engine, generators, CLI, REPL, NRT, portable DSP), live ALSA audio + ALSA MIDI + POSIX OSC + portable WAV codec, the GTK4 GUI (LyrebirdUI on the SwiftOpenUI backend), and the Linux live-coding scratchpad (LiveCompile). Apple platforms unchanged; all additive. See RELEASES.md and LINUX_README.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
655 B
Swift
21 lines
655 B
Swift
// 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
|