Skip to content

Commit

Permalink
DEV: Fix tests against Ruby ≥ 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerj committed Mar 4, 2022
1 parent 1481aab commit edbcad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_profiler/profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def dump_exceptions(exceptions)

body << "\nBacktraces\n"
exceptions.each_with_index do |e, i|
body << "##{i + 1}: #{e.class} - \"#{e.message}\"\n #{e.backtrace.join("\n ")}\n\n"
body << "##{i + 1}: #{e.class} - \"#{e.message.lines.first.chomp}\"\n #{e.backtrace.join("\n ")}\n\n"
end
end
text_result(body)
Expand Down

0 comments on commit edbcad3

Please sign in to comment.