Skip to content

Commit 0bd5260

Browse files
authored
Add executable name to exec error (#36)
Signed-off-by: Aditya Ramani <a_ramani@apple.com>
1 parent 9c1b08d commit 0bd5260

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vminitd/Sources/vmexec/vmexec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extension App {
8585
}
8686

8787
guard execvpe(executable, argv, env) != -1 else {
88-
throw App.Errno(stage: "execvpe(\(String(describing: executable)))", info: "Failed to exec [\(process.args[1...].joined(separator: " "))]")
88+
throw App.Errno(stage: "execvpe(\(String(describing: executable)))", info: "Failed to exec [\(process.args.joined(separator: " "))]")
8989
}
9090
fatalError("execvpe failed")
9191
}

0 commit comments

Comments
 (0)