From b24a86cec9d0c835eae094b5f82c2197176e9c17 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 15 Nov 2013 01:23:47 +0100 Subject: [PATCH] eval must be exited with die, not next. --- remoteglot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remoteglot.pl b/remoteglot.pl index acb992d..42db146 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -737,7 +737,7 @@ sub output_screen { for my $move (keys %refutation_moves) { eval { my $m = $refutation_moves{$move}; - next if ($m->{'depth'} < $second_engine_start_depth); + die if ($m->{'depth'} < $second_engine_start_depth); my $pretty_move = join('', prettyprint_pv($pos_calculating->{'board'}, $move)); my @pretty_pv = prettyprint_pv($pos_calculating->{'board'}, $move, @{$m->{'pv'}}); if (scalar @pretty_pv > 5) { -- 2.39.2