summaryrefslogtreecommitdiff
path: root/lib/chef/application.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-04-17 13:17:53 -0700
committerTim Smith <tsmith@chef.io>2019-04-17 13:17:53 -0700
commitc7326d0b518ad7c22ffdf70413f5955888aba432 (patch)
tree6261757353a3627eae13d01131522adaa48dfca9 /lib/chef/application.rb
parentf6f4100cdb1d78fd189325220e8600a15f7e9bff (diff)
downloadchef-c7326d0b518ad7c22ffdf70413f5955888aba432.tar.gz
Improve the error message when no config can be loaded
Make it more clear that we're going to use the CLI options instead since we couldn't find a config file. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/application.rb')
-rw-r--r--lib/chef/application.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 817cdf051d..e7cb55093b 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -132,10 +132,10 @@ class Chef
config[:config_file] = config_fetcher.expanded_path
if config[:config_file].nil?
- logger.warn("No config file found or specified on command line, using command line options.")
+ logger.warn("No config file found or specified on command line, using command line options instead.")
elsif config_fetcher.config_missing?
logger.warn("*****************************************")
- logger.warn("Did not find config file: #{config[:config_file]}, using command line options.")
+ logger.warn("Did not find config file: #{config[:config_file]}, using command line options instead.")
logger.warn("*****************************************")
else
config_content = config_fetcher.read_config