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 hn newest taf2|8 years ago Just need to rework all thesee.backtrace.first lines to e.backtrace.lastOr maybe my favorite which is still goodputs “#{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.
taf2|8 years ago Just need to rework all thesee.backtrace.first lines to e.backtrace.lastOr maybe my favorite which is still goodputs “#{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.
sampriti|8 years ago That code will still work, they are using the experimental feature only when the backtrace is printed to a tty.
taf2|8 years ago
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