Skip to content

Commit 9bc08bc

Browse files
cmcgee1024patricktcoakley
authored andcommitted
Place the correct program and arguments into RunProgramError (swiftlang#347)
1 parent 74dfa77 commit 9bc08bc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ let package = Package(
2828
.package(url: "https://github.com/apple/swift-nio.git", from: "2.80.0"),
2929
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.7.2"),
3030
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
31-
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.6.0"),
32-
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.7.0"),
31+
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.7.2"),
32+
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.8.2"),
3333
.package(url: "https://github.com/apple/swift-system", from: "1.4.2"),
3434
// This dependency provides the correct version of the formatter so that you can run `swift run swiftformat Package.swift Plugins/ Sources/ Tests/`
3535
.package(url: "https://github.com/nicklockwood/SwiftFormat", exact: "0.49.18"),

Sources/SwiftlyCore/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ extension Platform {
338338
process.waitUntilExit()
339339

340340
guard process.terminationStatus == 0 else {
341-
throw RunProgramError(exitCode: process.terminationStatus, program: args.first!, arguments: Array(args.dropFirst()))
341+
throw RunProgramError(exitCode: process.terminationStatus, program: program, arguments: args)
342342
}
343343

344344
if let outData {

0 commit comments

Comments
 (0)