summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-05 21:06:40 -0800
committerTim Smith <tsmith84@gmail.com>2016-03-05 21:21:39 -0800
commit85f5d356fe81e4ff0e2e3dfdc22ac370ac6df816 (patch)
treea5a05b98bc026412df8f004a115480372c127e38
parent9f298906fabed36b136314f5e2acb9793011d1ee (diff)
downloadchef-85f5d356fe81e4ff0e2e3dfdc22ac370ac6df816.tar.gz
Avoid sentence fragments in errors
This makes our error messaging more consistent
-rw-r--r--lib/chef/knife/client_bulk_delete.rb2
-rw-r--r--lib/chef/knife/download.rb2
-rw-r--r--lib/chef/knife/upload.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/client_bulk_delete.rb b/lib/chef/knife/client_bulk_delete.rb
index af3e862a18..a7fa7142c8 100644
--- a/lib/chef/knife/client_bulk_delete.rb
+++ b/lib/chef/knife/client_bulk_delete.rb
@@ -65,7 +65,7 @@ class Chef
def check_and_delete_validators(validators)
unless validators.empty?
unless config[:delete_validators]
- ui.msg("Following clients are validators and will not be deleted.")
+ ui.msg("The following clients are validators and will not be deleted:")
print_clients(validators)
ui.msg("You must specify --delete-validators to delete the validator clients")
else
diff --git a/lib/chef/knife/download.rb b/lib/chef/knife/download.rb
index c609760509..b115b8ec8a 100644
--- a/lib/chef/knife/download.rb
+++ b/lib/chef/knife/download.rb
@@ -49,7 +49,7 @@ class Chef
def run
if name_args.length == 0
show_usage
- ui.fatal("Must specify at least one argument. If you want to download everything in this directory, type \"knife download .\"")
+ ui.fatal("You must specify at least one argument. If you want to download everything in this directory, type \"knife download .\"")
exit 1
end
diff --git a/lib/chef/knife/upload.rb b/lib/chef/knife/upload.rb
index e04a58a969..f0ecaaae47 100644
--- a/lib/chef/knife/upload.rb
+++ b/lib/chef/knife/upload.rb
@@ -51,7 +51,7 @@ class Chef
def run
if name_args.length == 0
show_usage
- ui.fatal("Must specify at least one argument. If you want to upload everything in this directory, type \"knife upload .\"")
+ ui.fatal("You must specify at least one argument. If you want to upload everything in this directory, run \"knife upload .\"")
exit 1
end