From fb26f0ebda1ee9c4b9e5b5e6f8681d3417548015 Mon Sep 17 00:00:00 2001 From: Nick Carboni Date: Fri, 15 Sep 2017 14:16:58 -0400 Subject: [PATCH] Improve the grammar of the db connection error message https://bugzilla.redhat.com/show_bug.cgi?id=1447639 --- lib/gems/pending/appliance_console.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gems/pending/appliance_console.rb b/lib/gems/pending/appliance_console.rb index ff72aff07..972c925b0 100755 --- a/lib/gems/pending/appliance_console.rb +++ b/lib/gems/pending/appliance_console.rb @@ -461,7 +461,7 @@ module ApplianceConsole elsif !rake_success say("\nDatabase restore failed") connections = ApplianceConsole::Utilities.db_connections - 1 - say("\nThere are #{connections} connection preventing a database restore") if connections > 0 + say("\nThere #{connections > 1 ? "are #{connections} connections" : "is 1 connection"} preventing a database restore") if connections > 0 end end press_any_key