Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit aeb4326

Browse files
committed
Filter out internal messages from the backtrace
1 parent 6eafe09 commit aeb4326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/core/formatters/exception_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def find_failed_line
244244

245245
exception_backtrace.reject! do |line|
246246
line.start_with?("<internal:")
247-
end if RSpec::Support::Ruby.truffleruby?
247+
end
248248

249249
exception_backtrace.find do |line|
250250
next unless (line_path = line[/(.+?):(\d+)(|:\d+)/, 1])

0 commit comments

Comments
 (0)