summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsnehaldwivedi <sdwivedi@msystechnologies.com>2020-06-04 16:16:26 +0530
committersnehaldwivedi <sdwivedi@msystechnologies.com>2020-06-04 16:16:26 +0530
commit40583f80216b569a8a0331b105d43cc51464882b (patch)
treed976c9bb22fdc4e3f8830b5ef44b3cf6036feb7c /lib
parentcbf2666da391bde24de60b726d22486545693ae3 (diff)
downloadchef-40583f80216b569a8a0331b105d43cc51464882b.tar.gz
Updated exception message Chef::Exceptions::InvalidDataBagPath
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/data_bag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb
index d64d610fd9..cd728168b6 100644
--- a/lib/chef/data_bag.rb
+++ b/lib/chef/data_bag.rb
@@ -94,7 +94,7 @@ class Chef
names = []
paths.each do |path|
unless File.directory?(path)
- raise Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{path}' is invalid"
+ raise Chef::Exceptions::InvalidDataBagPath, "Please create databag folder at '#{path}'"
end
names += Dir.glob(File.join(
@@ -122,7 +122,7 @@ class Chef
data_bag = {}
paths.each do |path|
unless File.directory?(path)
- raise Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{path}' is invalid"
+ raise Chef::Exceptions::InvalidDataBagPath, "Please create databag folder at '#{path}'"
end
Dir.glob(File.join(Chef::Util::PathHelper.escape_glob_dir(path, name.to_s), "*.json")).inject({}) do |bag, f|