diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 11:53:05 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-14 11:53:05 -0700 |
commit | c031a6182bef7f689b2d80f418ae1b80669168a3 (patch) | |
tree | 627f24bc48fd352dd82a1588a514349c5924d9eb /lib/chef/config_fetcher.rb | |
parent | 365064280c93d519fdacbf032c0c21057e5549c9 (diff) | |
download | chef-c031a6182bef7f689b2d80f418ae1b80669168a3.tar.gz |
fix some UselessAssignment caseslcg/useless-assignment
Diffstat (limited to 'lib/chef/config_fetcher.rb')
-rw-r--r-- | lib/chef/config_fetcher.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/config_fetcher.rb b/lib/chef/config_fetcher.rb index 13f9fc3825..acd2f07f5e 100644 --- a/lib/chef/config_fetcher.rb +++ b/lib/chef/config_fetcher.rb @@ -45,9 +45,9 @@ class Chef def read_local_config ::File.read(config_location) - rescue Errno::ENOENT => error + rescue Errno::ENOENT Chef::Application.fatal!("Cannot load configuration from #{config_location}", 2) - rescue Errno::EACCES => error + rescue Errno::EACCES Chef::Application.fatal!("Permissions are incorrect on #{config_location}. Please chmod a+r #{config_location}", 2) end |