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-1.3.6-rc5^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7b47f881cb8625fb9885480b0454adc38f2de409;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;