We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 511c3f6 commit 71f071eCopy full SHA for 71f071e
src/alejandra_cli/src/cli.rs
@@ -384,7 +384,7 @@ pub fn main() -> std::io::Result<()> {
384
eprintln!(
385
"Failed! We encountered {} error{} at:",
386
errors,
387
- if errors > 0 { "s" } else { "" }
+ if errors >= 2 { "s" } else { "" }
388
);
389
for formatted_path in formatted_paths {
390
if let alejandra_engine::format::Status::Error(error) =
@@ -409,8 +409,8 @@ pub fn main() -> std::io::Result<()> {
409
410
"Success! {} file{} {} changed",
411
changed,
412
- if changed > 0 { "s" } else { "" },
413
- if changed > 0 { "were" } else { "was" },
+ if changed >= 2 { "s" } else { "" },
+ if changed >= 2 { "were" } else { "was" },
414
415
if check {
416
std::process::exit(2);
0 commit comments