lib/berkshelf/locations/chef_api_location.rb in berkshelf-2.0.8 vs lib/berkshelf/locations/chef_api_location.rb in berkshelf-2.0.9

- old
+ new

@@ -138,10 +138,10 @@ ) # Why do we use a class function for defining our finalizer? # http://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/ ObjectSpace.define_finalizer(self, self.class.finalizer) - rescue Ridley::Errors::ClientKeyFileNotFound => ex + rescue Ridley::Errors::ClientKeyFileNotFoundOrInvalid => ex raise ClientKeyFileNotFound, ex end # @param [#to_s] destination #