From 7b47f881cb8625fb9885480b0454adc38f2de409 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 1 Sep 2022 15:18:04 +0200 Subject: [PATCH] Fix segfault when a job query fails with SLURM --- src/Slurm/BatchManager_Slurm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2