Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
codergeek121 committed Jan 4, 2024
1 parent 2e97ed3 commit 380f941
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions app/views/email_error_reporter/error_mailer/error.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
<h1><%= @error.class %></h1>
<p><%= @error.message %></p>

<div>
<table border="1">
<%= render(partial: "frame", collection: @backtrace) || render("no_backtrace") -%>
</table>
</div>
<html>
<body style="max-width: 768px; margin: 0 auto;">
<h1><%= @error.class %></h1>
<p><%= @error.message %></p>

<div>
<table border="1">
<%= render(partial: "frame", collection: @backtrace) || render("no_backtrace") -%>
</table>
</div>

<hr>

<details>
<summary>Details</summary>
<p>Handled: <%= @handled ? "✅" : "❌" %></p>
<p>Source: <%= @source ? @source : "No source present" %></p>

<h2>Context</h2>
<pre style="font-family: mono; background: #ffeeff"><code>
<%= @context %>
</code></pre>
</details>
</body>
</html>

0 comments on commit 380f941

Please sign in to comment.