summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-01-23 14:44:14 -0800
committerTim Smith <tsmith84@gmail.com>2020-01-23 14:44:14 -0800
commit1e3d8f40df006ad72484da25b6cce4e17db24a70 (patch)
treedc56e61800e0259d0c3c8fdbc6a1949e3e51873d /lib/chef/cookbook
parente22c8a4e6207a188bcdb88182e588a68dc5cbde9 (diff)
downloadchef-1e3d8f40df006ad72484da25b6cce4e17db24a70.tar.gz
Provider a better error message in Chef::Cookbook::CookbookVersionLoader
When this shows up in logs it's impossible to figure out what actually needs to be updated Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r--lib/chef/cookbook/cookbook_version_loader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/cookbook_version_loader.rb b/lib/chef/cookbook/cookbook_version_loader.rb
index 7e09fae60c..cf7bff1ff8 100644
--- a/lib/chef/cookbook/cookbook_version_loader.rb
+++ b/lib/chef/cookbook/cookbook_version_loader.rb
@@ -82,7 +82,7 @@ class Chef
end
def load
- Chef::Log.warn "load method is deprecated. Use load! instead"
+ Chef::Log.warn "Chef::Cookbook::CookbookVersionLoader's load method is deprecated. Please use load! instead."
metadata # force lazy evaluation to occur
# re-raise any exception that occurred when reading the metadata