mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.15 and Bundler-2.3.15
This commit is contained in:
parent
d7862a5de4
commit
b9f6a09bd2
40 changed files with 385 additions and 100 deletions
|
@ -148,7 +148,12 @@ class Gem::CommandManager
|
|||
def run(args, build_args=nil)
|
||||
process_args(args, build_args)
|
||||
rescue StandardError, Timeout::Error => ex
|
||||
alert_error clean_text("While executing gem ... (#{ex.class})\n #{ex}")
|
||||
if ex.respond_to?(:detailed_message)
|
||||
msg = ex.detailed_message(highlight: false).sub(/\A(.*?)(?: \(.+?\))/) { $1 }
|
||||
else
|
||||
msg = ex.message
|
||||
end
|
||||
alert_error clean_text("While executing gem ... (#{ex.class})\n #{msg}")
|
||||
ui.backtrace ex
|
||||
|
||||
terminate_interaction(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue