diff --git a/src/slurmd/smgr.c b/src/slurmd/smgr.c index 881c1f5d932f4e2a1e0f256bfa13f4e3a906cbb5..cc025b5982ab6e61d1190a35f3604bef6b98e2f3 100644 --- a/src/slurmd/smgr.c +++ b/src/slurmd/smgr.c @@ -166,8 +166,10 @@ _session_mgr(slurmd_job_t *job) exit(2); cont_id = slurm_create_container(job->jobid); - if (cont_id == 0) + if (cont_id == 0) { + error("slurm_create_container: %m"); exit(3); + } if (chdir(job->cwd) < 0) { error("couldn't chdir to '%s': %m: going to /tmp instead",