From: Renaud Barate Date: Thu, 1 Sep 2022 13:18:04 +0000 (+0200) Subject: Fix segfault when a job query fails with SLURM X-Git-Tag: EMC2P_V_1_3_6-rc6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=502998f208bea352f9f3acb30b1ccb9aa23655f7;p=tools%2Flibbatch.git Fix segfault when a job query fails with SLURM --- diff --git a/src/Slurm/BatchManager_Slurm.cxx b/src/Slurm/BatchManager_Slurm.cxx index 1d6fe6f..ba9fb86 100644 --- a/src/Slurm/BatchManager_Slurm.cxx +++ b/src/Slurm/BatchManager_Slurm.cxx @@ -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;