2024-05-06 02:47:53 -05:00
|
|
|
<% if CurrentUser.user.try(:is_admin?) && @exception.present? %>
|
|
|
|
<h1><%= @exception.class.to_s %> exception raised</h1>
|
2024-05-02 22:04:43 -05:00
|
|
|
|
2024-05-06 02:47:53 -05:00
|
|
|
<p><%= @message || @exception.message.dup.force_encoding("utf-8") %></p>
|
|
|
|
<p>Log ID: <%= @log_code || "(none)" %></p>
|
|
|
|
<%= render "static/backtrace", backtrace: @exception.backtrace %>
|
|
|
|
<% elsif @message %>
|
|
|
|
<p><%= @message %></p>
|
|
|
|
<p>Log ID: <%= @log_code || "(none)" %></p>
|
2024-05-02 22:04:43 -05:00
|
|
|
<% else %>
|
2024-05-06 02:47:53 -05:00
|
|
|
<p>An error happened but there are no details provided.</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for(:page_title) do %>
|
|
|
|
Unexpected Error
|
2024-05-02 22:04:43 -05:00
|
|
|
<% end %>
|