Salome HOME
Fix segfault when a job query fails with SLURM
[tools/libbatch.git] / src / Slurm / BatchManager_Slurm.cxx
index 1d6fe6f05b6d73e71689b4a771f8a94bf1a6a425..ba9fb86516c07c10fd6954b30d71ff1187a87505 100644 (file)
@@ -251,7 +251,7 @@ namespace Batch {
                 throw(exc);
             }
         } else {
-            throw RunTimeException("sacct command failed with return code: " + status);
+            throw RunTimeException("sacct command failed with return code: " + to_string(status));
         }
     }
     return jobinfo;