Sha256: 39b63ef458a582ca0f6e2906f687a82bab978df5740d3d08c64c4d52de0a3bc3

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

<!DOCTYPE HTML>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Exception</title>
  </head>
  <body>
    <pre style="font-size: 12px">
<%= @exception.class.to_s =~ /^[aeiou]/i ? 'An' : 'A' %> <%= @exception.class %> occurred in <%= @kontroller.controller_name %>#<%= @kontroller.action_name %>:

<%= raw @exception.message %>
<%= raw @backtrace.first %>

<%
    sections = @sections.map do |section|
      begin
        summary = render(section).strip
        unless summary.blank?
          title = render("title", :title => section).strip
          "#{title}\n\n#{summary.gsub(/^/, "  ")}\n\n"
        end

      rescue Exception => e
        title = render("title", :title => section).strip
        summary = ["ERROR: Failed to generate exception summary:", [e.class.to_s, e.message].join(": "), e.backtrace && e.backtrace.join("\n")].compact.join("\n\n")

        [title, summary.gsub(/^/, "  "), nil].join("\n\n")
      end
    end.join
    sections = sections.force_encoding('UTF-8').encode('UTF-16', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
%>

<%= raw sections %>
  </pre>
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exception_notification-3.0.0 lib/exception_notifier/views/exception_notifier/exception_notification.html.erb
exception_notification-3.0.0.rc1 lib/exception_notifier/views/exception_notifier/exception_notification.html.erb