Skip to content

Commit f96e7d2

Browse files
committed
Fix: mkdir might also raise Errno::EROFS
1 parent 4c877fc commit f96e7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def self.ensure_subdirectories(dir, mode, subdirs) # :nodoc:
469469
next if File.exist? subdir
470470
begin
471471
FileUtils.mkdir_p subdir, **options
472-
rescue Errno::EACCES, Errno::ENOTDIR
472+
rescue SystemCallError
473473
end
474474
end
475475
ensure

0 commit comments

Comments
 (0)