Add executable name to exec error (#36)

Signed-off-by: Aditya Ramani <a_ramani@apple.com>
This commit is contained in:
Aditya Ramani
2025-06-07 22:47:45 -07:00
committed by GitHub
parent 9c1b08d3e7
commit 0bd526053c
+1 -1
View File
@@ -85,7 +85,7 @@ extension App {
}
guard execvpe(executable, argv, env) != -1 else {
throw App.Errno(stage: "execvpe(\(String(describing: executable)))", info: "Failed to exec [\(process.args[1...].joined(separator: " "))]")
throw App.Errno(stage: "execvpe(\(String(describing: executable)))", info: "Failed to exec [\(process.args.joined(separator: " "))]")
}
fatalError("execvpe failed")
}