summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-08-20 15:17:31 -0400
committerGitHub <noreply@github.com>2019-08-20 15:17:31 -0400
commit99fbfb06b9780a72a0033507fe519acd81b4a3b0 (patch)
treeec4a09312d259b85b85e25f3175da2d039f95287
parent369333eacb10b426f4056208deeacd5e365365de (diff)
parent1e90c1b0650060e96129b2d50ef5f24ae7eac2ec (diff)
downloadchef-99fbfb06b9780a72a0033507fe519acd81b4a3b0.tar.gz
Merge pull request #8828 from andrewdotn/master
Fix crash when showing error about missing profile
-rw-r--r--chef-config/lib/chef-config/mixin/credentials.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-config/lib/chef-config/mixin/credentials.rb b/chef-config/lib/chef-config/mixin/credentials.rb
index 3882924d1a..bb4d55f4bc 100644
--- a/chef-config/lib/chef-config/mixin/credentials.rb
+++ b/chef-config/lib/chef-config/mixin/credentials.rb
@@ -92,7 +92,7 @@ module ChefConfig
# raise an error.
return if profile == "default"
- raise ChefConfig::ConfigurationError, "Profile #{profile} doesn't exist. Please add it to #{credentials_file}."
+ raise ChefConfig::ConfigurationError, "Profile #{profile} doesn't exist. Please add it to #{credentials_file_path}."
end
apply_credentials(config[profile], profile)
end