From e81161c744242580c14854a7ec4563383bf07db5 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Wed, 30 Nov 2016 15:28:56 -0600 Subject: [SharedHelpers] Ignore EEXIST and ENOENT in #filesystem_access --- lib/bundler/shared_helpers.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb index f7806ce1d6..62ade29e30 100644 --- a/lib/bundler/shared_helpers.rb +++ b/lib/bundler/shared_helpers.rb @@ -115,6 +115,8 @@ module Bundler raise NoSpaceOnDeviceError.new(path, action) rescue *[const_get_safely(:ENOTSUP, Errno)].compact raise OperationNotSupportedError.new(path, action) + rescue Errno::EEXIST, Errno::ENOENT + raise rescue SystemCallError => e raise GenericSystemCallError.new(e, "There was an error accessing `#{path}`.") end -- cgit v1.2.1