Hacker News new | ask | show | jobs
by Lockyy 3100 days ago
Can’t beat reversing the backtrace output for making Ruby even more enjoyable. Slogging up through a huge pile of calls was one of the few things that drove me mad.
1 comments

Just need to rework all these

e.backtrace.first lines to e.backtrace.last

Or maybe my favorite which is still good

puts “#{e.message} #{e.backtrace.join(“\n”)}”

That code will still work, they are using the experimental feature only when the backtrace is printed to a tty.