* Simplify code. * Show backtraces for all users, not just builders. * Show backtraces only for unexpected server errors (status 5xx), not for normal client errors (status 4xx). * Log expected errors at info level (reduce noise in production logs).
8 lines
172 B
Plaintext
8 lines
172 B
Plaintext
<h1>Error</h1>
|
|
<p><%= @message %></p>
|
|
|
|
<% unless @expected %>
|
|
<h6>Details</h6>
|
|
<%= render "static/backtrace", exception: @exception, backtrace: @backtrace %>
|
|
<% end %>
|