top | item 16003831

(no title)

Lockyy | 8 years 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.

discuss

order

taf2|8 years ago

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”)}”

sampriti|8 years ago

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