From 03823f1bee527b004a925951f478c657626a9377 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Thu, 7 Dec 2023 06:54:19 -0800 Subject: [PATCH] [omdb] typo fix in error message (#4631) Noticed this while investigating #4621: ``` warning: 16 collection errorwere s reported above ``` --- dev-tools/omdb/src/bin/omdb/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/omdb/src/bin/omdb/db.rs b/dev-tools/omdb/src/bin/omdb/db.rs index 85c55d4e61..08a783d8c8 100644 --- a/dev-tools/omdb/src/bin/omdb/db.rs +++ b/dev-tools/omdb/src/bin/omdb/db.rs @@ -2477,8 +2477,8 @@ async fn cmd_db_inventory_collections_show( eprintln!( "warning: {} collection error{} {} reported above", nerrors, + if nerrors == 1 { "" } else { "s" }, if nerrors == 1 { "was" } else { "were" }, - if nerrors == 1 { "" } else { "s" } ); }