2024-05-06 07:47:53 +00:00
|
|
|
<% if CurrentUser.user.try(:is_admin?) && @exception.present? %>
|
|
|
|
<h1><%= @exception.class.to_s %> exception raised</h1>
|
2024-05-03 03:04:43 +00:00
|
|
|
|
2024-05-06 07:47:53 +00: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-03 03:04:43 +00:00
|
|
|
<% else %>
|
2024-05-06 07:47:53 +00:00
|
|
|
<p>An error happened but there are no details provided.</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for(:page_title) do %>
|
|
|
|
Unexpected Error
|
2024-05-03 03:04:43 +00:00
|
|
|
<% end %>
|