Files
Lyrebird/LiveCompile/Sources/LyrebirdLiveCompile/SwiftFormatterError.swift
T
josh 62b2f5dbec v1.5.0 release: LyrebirdRandom + Live Scratch editor
LyrebirdRandom scalar distribution sampling (seedable value type + shared
Random) with DistributionKind.sample dispatcher. Live Scratch editor: rename to
LyrebirdScratch, App Support artifact staging, Format Code (⌥⌘F), Render to File
(⌥⌘R offline CAF), line-number gutter, manual completion, Foundation in snippets,
scroll-jump fix, scheduling/NRT docs.
2026-07-22 07:53:12 -07:00

21 lines
642 B
Swift

// SwiftFormatterError.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
#if os(macOS)
/// 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