Skip to content

Commit

Permalink
foreach: use count_rows with error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Jun 10, 2022
1 parent bf4d304 commit a994af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/foreach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
if args.flag_quiet {
progress.set_draw_target(ProgressDrawTarget::hidden());
} else {
let record_count = util::count_rows(&rconfig);
let record_count = util::count_rows(&rconfig)?;
util::prep_progress(&progress, record_count);
}

Expand Down

0 comments on commit a994af2

Please sign in to comment.