# File lib/mini_profiler/profiler.rb, line 405 def dump_exceptions(exceptions) headers = {'Content-Type' => 'text/plain'} body = "Exceptions (#{exceptions.length} raised during request)\n\n" exceptions.each do |e| body << "#{e.class} #{e.message}\n#{e.backtrace.join("\n")}\n\n\n\n" end [200, headers, [body]] end