diff options
author | snehaldwivedi <sdwivedi@msystechnologies.com> | 2020-06-05 19:43:40 +0530 |
---|---|---|
committer | snehaldwivedi <sdwivedi@msystechnologies.com> | 2020-06-05 19:43:40 +0530 |
commit | 51180160fa9e9dce671d755abcbeb33c4c24879f (patch) | |
tree | d295c94ba898a6d600d41e0f69db4b859ad28c7e /lib/chef/data_bag.rb | |
parent | 40583f80216b569a8a0331b105d43cc51464882b (diff) | |
download | chef-51180160fa9e9dce671d755abcbeb33c4c24879f.tar.gz |
Updated exception messageSnehal/Github-#333_knife_vault_on_windows_10_fails
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'lib/chef/data_bag.rb')
-rw-r--r-- | lib/chef/data_bag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb index cd728168b6..5715f1970d 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, "Please create databag folder at '#{path}'" + raise Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{path}' not found. Please create this directory." 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, "Please create databag folder at '#{path}'" + raise Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{path}' not found. Please create this directory." end Dir.glob(File.join(Chef::Util::PathHelper.escape_glob_dir(path, name.to_s), "*.json")).inject({}) do |bag, f| |