mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Show also output from all commands on rubygems checkout errors
https://github.com/rubygems/rubygems/commit/1fe24e471d
This commit is contained in:
parent
5ae80c5207
commit
2b73f26fde
Notes:
git
2020-07-15 16:05:56 +09:00
1 changed files with 9 additions and 1 deletions
|
@ -24,6 +24,12 @@ class RubygemsVersionManager
|
|||
|
||||
def assert_system_features_not_loaded!
|
||||
at_exit do
|
||||
errors = if $?.nil?
|
||||
""
|
||||
else
|
||||
all_commands_output
|
||||
end
|
||||
|
||||
rubylibdir = RbConfig::CONFIG["rubylibdir"]
|
||||
|
||||
rubygems_path = rubylibdir + "/rubygems"
|
||||
|
@ -38,8 +44,10 @@ class RubygemsVersionManager
|
|||
end
|
||||
|
||||
if bad_loaded_features.any?
|
||||
raise "the following features were incorrectly loaded:\n#{bad_loaded_features.join("\n")}"
|
||||
errors += "the following features were incorrectly loaded:\n#{bad_loaded_features.join("\n")}"
|
||||
end
|
||||
|
||||
raise errors unless errors.empty?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue