Skip to content

Commit 3bc0dc5

Browse files
committed
bug fix, printed unnecessary summary line about errors
1 parent 1d134d9 commit 3bc0dc5

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[package]
44
name = "matrix-commander"
5-
version = "0.9.4"
5+
version = "0.9.5"
66
edition = "2021"
77
description = "simple but convenient CLI-based Matrix client app for sending and receiving"
88
documentation = "https://docs.rs/matrix-commander"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.4
1+
0.9.5

src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4279,8 +4279,12 @@ async fn main() -> Result<(), Error> {
42794279
};
42804280
} // Err(e) =>
42814281
} // match clientres
4282-
let plural = if errcount > 1 { "s" } else { "" };
4283-
error!("Encountered {} error{}.", errcount, plural);
4282+
let plural = if errcount == 1 { "" } else { "s" };
4283+
if errcount > 0 {
4284+
error!("Encountered {} error{}.", errcount, plural);
4285+
} else {
4286+
debug!("Encountered {} error{}.", errcount, plural);
4287+
}
42844288
debug!("Good bye");
42854289
result
42864290
}

0 commit comments

Comments
 (0)