-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e97ed3
commit 380f941
Showing
1 changed file
with
25 additions
and
8 deletions.
There are no files selected for viewing
33 changes: 25 additions & 8 deletions
33
app/views/email_error_reporter/error_mailer/error.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |