Websites/app/views/static/error.html.erb

17 lines
551 B
Plaintext
Raw Normal View History

<% if CurrentUser.user.try(:is_admin?) && @exception.present? %>
<h1><%= @exception.class.to_s %> exception raised</h1>
2024-05-03 03:04:43 +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 %>
<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 %>