Skip to content

Commit

Permalink
Print backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Jul 24, 2024
1 parent 0477430 commit ec66fa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ruby/lib/minitest/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ def run_from_queue(reporter, *)
queue.report_worker_error(error)
puts red("This worker exited because of an uncaught application error:")
puts red("#{error.class}: #{error.message}")
error.backtrace.each do |frame|
puts red(frame)
end
exit!(42)
end
end
Expand Down

0 comments on commit ec66fa1

Please sign in to comment.