diff options
author | sersut <serdar@opscode.com> | 2013-05-20 13:21:59 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-05-20 13:21:59 -0700 |
commit | eb93348d2b5985f5e98b88076e41aba802f9dff4 (patch) | |
tree | 3b72662fffc932ad9e98d6caf99cf81a6769410d /lib/chef/file_content_management | |
parent | e0706f6bab2e8350003907053a3ce69c6a5d6f3c (diff) | |
download | chef-eb93348d2b5985f5e98b88076e41aba802f9dff4.tar.gz |
Better error message when administrator privilages is missing on windows. Fix comment for MvWindows.
Diffstat (limited to 'lib/chef/file_content_management')
-rw-r--r-- | lib/chef/file_content_management/deploy/mv_windows.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/file_content_management/deploy/mv_windows.rb b/lib/chef/file_content_management/deploy/mv_windows.rb index 9449b43832..4dbc9047ac 100644 --- a/lib/chef/file_content_management/deploy/mv_windows.rb +++ b/lib/chef/file_content_management/deploy/mv_windows.rb @@ -57,7 +57,7 @@ class Chef # Catch and raise if the user is not elevated enough. # At this point we can't configure the file as expected so # we're failing action on the resource. - raise Chef::Exceptions::WindowsNotAdmin + raise Chef::Exceptions::WindowsNotAdmin, "can not get the security information for '#{dst}' due to missing Administrator privilages." end if dst_sd.dacl_present? @@ -75,7 +75,7 @@ class Chef FileUtils.mv(src, dst) # - # Then apply the cached files to the new dst file + # Then apply the cached acls to the new dst file # dst_so = Security::SecurableObject.new(dst) |