Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Swiftly/Install.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ struct Install: SwiftlyCommand {
category = "development"
}
case .xcode:
fatalError("unreachable: xcode toolchain cannot be installed with swiftly")
throw SwiftlyError(message: "xcode toolchain is installed with Xcode")
}

let animation: ProgressReporterProtocol? =
Expand Down Expand Up @@ -509,7 +509,7 @@ struct Install: SwiftlyCommand {

return .snapshot(firstSnapshot)
case .xcode:
throw SwiftlyError(message: "xcode toolchains are not available from swift.org")
return .xcode
}
}
}