Skip to content

Commit

Permalink
bug fix, printed unnecessary summary line about errors
Browse files Browse the repository at this point in the history
  • Loading branch information
8go committed Sep 17, 2024
1 parent 1d134d9 commit 3bc0dc5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "matrix-commander"
version = "0.9.4"
version = "0.9.5"
edition = "2021"
description = "simple but convenient CLI-based Matrix client app for sending and receiving"
documentation = "https://docs.rs/matrix-commander"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.4
0.9.5
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4279,8 +4279,12 @@ async fn main() -> Result<(), Error> {
};
} // Err(e) =>
} // match clientres
let plural = if errcount > 1 { "s" } else { "" };
error!("Encountered {} error{}.", errcount, plural);
let plural = if errcount == 1 { "" } else { "s" };
if errcount > 0 {
error!("Encountered {} error{}.", errcount, plural);
} else {
debug!("Encountered {} error{}.", errcount, plural);
}
debug!("Good bye");
result
}
Expand Down

0 comments on commit 3bc0dc5

Please sign in to comment.