Skip to content

Commit 7781d39

Browse files
authored
Merge pull request #8231 from fstagni/90_apptainer_debug
[9.0] fix dirac_apptainer_exec: better debug of errors
2 parents c791de5 + 995fbac commit 7781d39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DIRAC/Core/scripts/dirac_apptainer_exec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def main():
100100
gLogger.error(result["Message"])
101101
DIRAC.exit(1)
102102
if result["Value"][0] != 0:
103-
gLogger.error(result["Value"][2])
103+
gLogger.error("Apptainer command failed with exit code", result["Value"][0])
104+
gLogger.error("Command output:", result["Value"])
104105
DIRAC.exit(2)
105106
gLogger.notice(result["Value"][1])
106107

0 commit comments

Comments
 (0)