diff options
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 |