diff options
Diffstat (limited to 'lib/chef/chef_fs/chef_fs_data_store.rb')
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb index 9070e69633..37f30dde45 100644 --- a/lib/chef/chef_fs/chef_fs_data_store.rb +++ b/lib/chef/chef_fs/chef_fs_data_store.rb @@ -524,6 +524,9 @@ class Chef select { |name, version| name == path[1] }. map { |name, version| version } end + if result.empty? + raise ChefZero::DataStore::DataNotFoundError.new(path) + end result else # list /cookbooks/name = <single version> |