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
|
||||
def data
|
||||
require_relative "shared_helpers"
|
||||
|
||||
Bundler::SharedHelpers.filesystem_access(loaded_from, :read) do
|
||||
super
|
||||
end
|
||||
super
|
||||
rescue Errno::EACCES
|
||||
raise Bundler::PermissionError.new(loaded_from, :read)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue