diff --git a/Sources/SwiftlyCore/Platform.swift b/Sources/SwiftlyCore/Platform.swift index 23687eb6..c20f6d18 100644 --- a/Sources/SwiftlyCore/Platform.swift +++ b/Sources/SwiftlyCore/Platform.swift @@ -338,7 +338,7 @@ extension Platform { process.waitUntilExit() guard process.terminationStatus == 0 else { - throw RunProgramError(exitCode: process.terminationStatus, program: args.first!, arguments: Array(args.dropFirst())) + throw RunProgramError(exitCode: process.terminationStatus, program: program, arguments: args) } if let outData {