]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
eval must be exited with die, not next.
[remoteglot] / remoteglot.pl
index acb992d89c3cae40abb46b78827d391efab1701f..42db14667b50313ffe9f36efe10b76ee3513145c 100755 (executable)
@@ -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) {