Commit cc55f707 authored by Florido Paganelli's avatar Florido Paganelli
Browse files

Fix for bug 3718 - improved SLURM error messages when issues with commands arise

parent ac014a7e
......@@ -320,7 +320,7 @@ sub slurm_expand_nodes($){
# check the existence of a passed binary, full path.
sub checkbin ($) {
my $apbin = shift;
error("Can't find $apbin , Exiting...") unless -f $apbin;
error("Can't find $apbin , check slurm_bin_path. Exiting...") unless -f $apbin;
}
############################################
......
......@@ -82,7 +82,7 @@ sub slurm_init_check($) {
my @slurm_commands = ('scontrol','squeue','sinfo');
foreach my $slurmcmd (@slurm_commands) {
$log->error("$path/$slurmcmd command not found. Exiting...") unless (-f "$path/$slurmcmd") ;
$log->error("$path/$slurmcmd command not found. Check slurm_bin_path in configuration. Exiting...") unless (-f "$path/$slurmcmd") ;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment