Method: Rack::ShowExceptions#dump_exception
- Defined in:
- lib/rack/showexceptions.rb
#dump_exception(exception) ⇒ Object
49 50 51 52 53 |
# File 'lib/rack/showexceptions.rb', line 49 def dump_exception(exception) string = "#{exception.class}: #{exception.}\n" string << exception.backtrace.map { |l| "\t#{l}" }.join("\n") string end |