summaryrefslogtreecommitdiff
path: root/lib/rubygems/ext/builder.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:47:12 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit6ad269dc39ab6bdf7ef195a048fa10b642374826 (patch)
tree6ba6dfbc3b6ecd67a10ae2cd4c8b5c6428838ce8 /lib/rubygems/ext/builder.rb
parent70164eec0f48a691dd039f55ac897036aa32e5cf (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RescueStandardError
https://github.com/rubygems/rubygems/commit/80b57da926
Diffstat (limited to 'lib/rubygems/ext/builder.rb')
-rw-r--r--lib/rubygems/ext/builder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb
index 02ca000984..e1b4f56fe8 100644
--- a/lib/rubygems/ext/builder.rb
+++ b/lib/rubygems/ext/builder.rb
@@ -74,7 +74,7 @@ class Gem::Ext::Builder
build_env = { "SOURCE_DATE_EPOCH" => Gem.source_date_epoch_string }.merge(env)
output, status = begin
Open3.capture2e(build_env, *command, :chdir => dir)
- rescue => error
+ rescue StandardError => error
raise Gem::InstallError, "#{command_name || class_name} failed#{error.message}"
end
if verbose
@@ -174,7 +174,7 @@ EOF
verbose { results.join("\n") }
write_gem_make_out results.join "\n"
- rescue => e
+ rescue StandardError => e
results << e.message
build_error(results.join("\n"), $@)
end