mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 05:07:54 +00:00
parallel: Show at which arg something unexplained failed.
This commit is contained in:
parent
2c1ebf9904
commit
a0adb0a1b1
|
@ -2115,7 +2115,11 @@ sub init_run_jobs {
|
|||
# Count down the number of jobs to run for this SSHLogin.
|
||||
my $max = $sshlogin->max_jobs_running();
|
||||
if($max > 1) { $max--; } else {
|
||||
::error("No more processes: cannot run a single job. Something is wrong.");
|
||||
my @arg;
|
||||
for my $record (@{$job->{'commandline'}->{'arg_list'}}) {
|
||||
push @arg, map { $_->orig() } @$record;
|
||||
}
|
||||
::error("No more processes: cannot run a single job. Something is wrong at @arg.");
|
||||
::wait_and_exit(255);
|
||||
}
|
||||
$sshlogin->set_max_jobs_running($max);
|
||||
|
|
Loading…
Reference in a new issue