fix erroneous error count comparison

This commit is contained in:
mos 2024-11-02 16:12:08 +01:00
parent 0b3d5b2e54
commit 61b9010210
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ fn read_bip<R: BufRead>(buf: R) -> Result<Vec<bip::Node>> {
if err_count > 0 {
let count_fmt = format!("{err_count} error{}", if err_count == 1 { "" } else { "s" });
if err_count >= ERR_MAX {
if err_count > ERR_MAX {
eprintln!("{} ({} shown)", count_fmt, ERR_MAX);
} else {
eprintln!("{}", count_fmt);