# File lib/turn/reporters/pretty_reporter.rb, line 86 def error(exception) io.print pad_with_size("#{ERROR}") io.print " #{@test}" io.print " (%.2fs) " % (Time.now - @test_time) #message = exception.to_s.split("\n")[2..-1].join("\n") message = exception.message _trace = if exception.respond_to?(:backtrace) filter_backtrace(exception.backtrace) else filter_backtrace(exception.location) end trace = _trace.shift io.puts tabsize = 10 io.puts message.tabto(tabsize) io.puts trace.tabto(tabsize) if @trace io.puts _trace.map{|l| l.tabto(tabsize) }.join("\n") end end