Skip to content

Commit 85e2387

Browse files
committed
Add more output to diagnose build release issue
1 parent d4cdd22 commit 85e2387

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tools/build-swiftly-release/BuildSwiftlyRelease.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ public func runProgram(_ args: String..., quiet: Bool = false) throws {
7878
}
7979

8080
public func runProgramOutput(_ program: String, _ args: String...) async throws -> String? {
81+
print("\(args.joined(separator: " "))")
82+
8183
let process = Process()
8284
process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
8385
process.arguments = [program] + args
8486

8587
let outPipe = Pipe()
8688
process.standardInput = FileHandle.nullDevice
87-
process.standardError = FileHandle.nullDevice
8889
process.standardOutput = outPipe
8990

9091
try process.run()
@@ -98,6 +99,7 @@ public func runProgramOutput(_ program: String, _ args: String...) async throws
9899
process.waitUntilExit()
99100

100101
guard process.terminationStatus == 0 else {
102+
print("\(args.first!) exited with non-zero status: \(process.terminationStatus)")
101103
throw Error(message: "\(args.first!) exited with non-zero status: \(process.terminationStatus)")
102104
}
103105

0 commit comments

Comments
 (0)