lib/berkshelf/locations/chef_api_location.rb in berkshelf-1.4.5 vs lib/berkshelf/locations/chef_api_location.rb in berkshelf-1.4.6
- old
+ new
@@ -172,10 +172,11 @@
@target_cookbook = if version_constraint
conn.cookbook.satisfy(name, version_constraint)
else
conn.cookbook.latest_version(name)
end
- rescue Ridley::Errors::HTTPNotFound
+ rescue Ridley::Errors::HTTPNotFound,
+ Ridley::Errors::ResourceNotFound
@target_cookbook = nil
end
if @target_cookbook.nil?
msg = "Cookbook '#{name}' found at #{self}"