From bc380537cd6e2ea113092f6d80534aa442fc1ec0 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 22 Mar 2005 21:52:26 +0000
Subject: [PATCH] Add message for container creation failure.

---
 src/slurmd/smgr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/slurmd/smgr.c b/src/slurmd/smgr.c
index 881c1f5d932..cc025b5982a 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",
-- 
GitLab