lib/backtracer.rb in backtracer-0.5.1 vs lib/backtracer.rb in backtracer-0.5.2
- old
+ new
@@ -22,11 +22,10 @@
actual_line = Tracer.get_line(file, line)
"#{bt_line}\n\t#{actual_line.strip if actual_line}"
}.compact
puts backtrace_with_code
- puts
- puts 'original backtrace:'
+ $!.set_backtrace [] # avoid the original backtrace
else
puts "(backtracer: no exception found to backtrace)" if $VERBOSE
end
# exit! TODO I guess do this once ours isn't *so* ugly
# I'm not sure it's safe to do that, in case there are other at_exit's [?]