mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
parent
22dab73971
commit
d1c172dfd0
1 changed files with 3 additions and 5 deletions
|
@ -145,11 +145,9 @@ module Gem
|
||||||
|
|
||||||
module BetterPermissionError
|
module BetterPermissionError
|
||||||
def data
|
def data
|
||||||
require_relative "shared_helpers"
|
super
|
||||||
|
rescue Errno::EACCES
|
||||||
Bundler::SharedHelpers.filesystem_access(loaded_from, :read) do
|
raise Bundler::PermissionError.new(loaded_from, :read)
|
||||||
super
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue