Donovan Daniels
b1c702e3cd
poorly tested but it worked well enough, I'm sure I'll be patching bugs over the next few weeks Also remove turbo because it sucks Also changed the way we handle hosts in dev
17 lines
551 B
Plaintext
17 lines
551 B
Plaintext
<% if CurrentUser.user.try(:is_admin?) && @exception.present? %>
|
|
<h1><%= @exception.class.to_s %> exception raised</h1>
|
|
|
|
<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>
|
|
<% else %>
|
|
<p>An error happened but there are no details provided.</p>
|
|
<% end %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Unexpected Error
|
|
<% end %>
|