Skip to content
  • David Rodríguez's avatar
    c38c1d82
    [rubygems/rubygems] Let original EACCES error be raised · c38c1d82
    David Rodríguez authored
    This block of code already wraps file operations with
    `SharedHelpers.filesystem_access`, which rescues and re-raises more
    friendly errors. Also, I'm not fully sure creating a temporary directory
    can end up raising an `Errno::EACCES` error from reading `tmpdir`
    sources. Finally, this rescue block apparently leads to some false
    positives when firewall is blocking the ruby executable on Windows, or
    at least that's what we've got reported.
    
    In any case, I think it's best to let the original error be raised.
    
    https://github.com/rubygems/rubygems/commit/f7dbe54404
    c38c1d82
    [rubygems/rubygems] Let original EACCES error be raised
    David Rodríguez authored
    This block of code already wraps file operations with
    `SharedHelpers.filesystem_access`, which rescues and re-raises more
    friendly errors. Also, I'm not fully sure creating a temporary directory
    can end up raising an `Errno::EACCES` error from reading `tmpdir`
    sources. Finally, this rescue block apparently leads to some false
    positives when firewall is blocking the ruby executable on Windows, or
    at least that's what we've got reported.
    
    In any case, I think it's best to let the original error be raised.
    
    https://github.com/rubygems/rubygems/commit/f7dbe54404
Loading