From 4f9879fc6a1e1e08eb4c4c3a6b921d914e2e7cc4 Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Mon, 18 Mar 2024 16:38:32 -0700 Subject: [PATCH] Print more details on error in container_get_cwd Signed-off-by: Felix Abecassis --- pyxis_slurmstepd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyxis_slurmstepd.c b/pyxis_slurmstepd.c index a31f57a..39a1f9f 100644 --- a/pyxis_slurmstepd.c +++ b/pyxis_slurmstepd.c @@ -729,7 +729,7 @@ static int container_get_cwd(pid_t pid, struct container *container) container->cwd_fd = open(path, O_RDONLY | O_CLOEXEC); if (container->cwd_fd < 0) { - slurm_error("pyxis: couldn't open cwd fd"); + slurm_error("pyxis: couldn't open cwd fd: %s", strerror(errno)); return (-1); }