summaryrefslogtreecommitdiff
path: root/lib/chef/api_client
diff options
context:
space:
mode:
authorJames Michael DuPont <JamesMikeDuPont@gmail.com>2015-09-29 07:03:01 -0400
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-24 20:25:12 -0700
commit8b8e264e996c683b058a54f34ffd125229358337 (patch)
treeaaa1a7ec76b4dae7ec553fbaba75a24f2995ed4d /lib/chef/api_client
parent51acd91fe175c9da0972c3172d3193f6eefb6af6 (diff)
downloadchef-8b8e264e996c683b058a54f34ffd125229358337.tar.gz
Update registration.rb
just output the abs path
Diffstat (limited to 'lib/chef/api_client')
-rw-r--r--lib/chef/api_client/registration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/api_client/registration.rb b/lib/chef/api_client/registration.rb
index fbd9f1a85d..4882323293 100644
--- a/lib/chef/api_client/registration.rb
+++ b/lib/chef/api_client/registration.rb
@@ -69,7 +69,7 @@ class Chef
def assert_destination_writable!
if (File.exists?(destination) && !File.writable?(destination)) or !File.writable?(File.dirname(destination))
abs_path = File.expand_path(destination)
- raise Chef::Exceptions::CannotWritePrivateKey, "I cannot write your private key to #{destination} (#{abs_path})- check permissions?"
+ raise Chef::Exceptions::CannotWritePrivateKey, "I can't write your private key to #{abs_path} - check permissions?"
end
end