Skip to content

Commit

Permalink
correct failure to report errors lower than one VTFILE level (#193)
Browse files Browse the repository at this point in the history
add tests
remove duplicate test file
  • Loading branch information
dozy authored and jenniferliddle committed Nov 20, 2017
1 parent 7a71681 commit 627dbb9
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 416 deletions.
4 changes: 2 additions & 2 deletions bin/vtfp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1001,10 +1001,10 @@ sub report_pv_ewi {

# do the same recursively for any children
for my $tn (@{$tree_node->{children}}) {
if($tn->{ewi}->{report}->(0, $logger, $cull_node_ids)) { $fatality = 1; }
if(report_pv_ewi($tn, $logger, $cull_node_ids)) { $fatality = 1; }
}

return $fatality; # should return some kind of error indicator, I think
return $fatality;
}

#######################################################################################
Expand Down
Loading

0 comments on commit 627dbb9

Please sign in to comment.