lib/async/logger.rb in async-1.15.4 vs lib/async/logger.rb in async-1.15.5
- old
+ new
@@ -137,10 +137,10 @@
format_value(argument, output: output)
end
end
def format_exception(exception, prefix = nil, pwd: Dir.pwd, output: @output)
- lines = exception.message.lines.map{|line| line.chomp!}
+ lines = exception.message.lines.map(&:chomp)
output.puts " #{prefix}#{@exception_title_style}#{exception.class}#{@reset_style}: #{lines.shift}"
lines.each do |line|
output.puts " #{@exception_details_style}" + line + @reset_style