This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/error_mailer/snapshot.rhtml

38 lines
876 B
Plaintext

Error report from <%= Time.now %>
* Message: <%= @exception.message %>
* Location: <%= @env['REQUEST_URI'] %>
* Action: <%= @params.delete('action') %>
* Controller: <%= @params.delete('controller') %>
* Query: <%= @env['QUERY_STRING'] %>
* Method: <%= @env['REQUEST_METHOD'] %>
* SSL: <%= @env['SERVER_PORT'].to_i == 443 ? "true" : "false" %>
* Agent: <%= @env['HTTP_USER_AGENT'] %>
Backtrace
<%= @trace.to_a.join("\n") -%>
<% if @params -%>
Params
<% for key, val in @params -%>
* <%= key %>
<%= val.to_yaml.to_a.join("\n ") %>
<% end -%>
<% end -%>
<% if @session -%>
Session
<% for key, val in @session -%>
<% next if key.to_s == 'permissions' -%>
* <%= key %>
<%= val.to_yaml.to_a.join("\n ") %>
<% end -%>
<% end -%>
<% if @env -%>
Environment
<% for key, val in @env -%>
* <%= key %>
<%= val.to_yaml.to_a.join("\n ") %>
<% end -%>
<% end -%>