Skip to content

Commit 2798ceb

Browse files
authored
Place the correct program and arguments into RunProgramError (#347)
1 parent 74dfa77 commit 2798ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)