Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::StreamUI#alert_error
alert_error(statement, question=nil)
lib/rubygems/user_interaction.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/user_interaction.rb, line 352
def alert_error(statement, question=nil)
@errs.puts "ERROR: #{statement}"
ask(question) if question
end
Display an error message in a location expected to get error messages. Will ask question if it is not nil.