From c776ee567e8363e4a755fab38da2efd548a92d91 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 9 Dec 2014 21:10:42 -0500 Subject: [PATCH] Display more detailed error, only if it exists --- app/views/static/error.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/static/error.html.erb b/app/views/static/error.html.erb index 5065e87d8..b81a62c0a 100644 --- a/app/views/static/error.html.erb +++ b/app/views/static/error.html.erb @@ -1,6 +1,4 @@ -<% if @error_message %> -

<%= @error_message %>

-<% elsif CurrentUser.user.is_builder? %> +<% if CurrentUser.user.is_builder? && @exception.present? %>

<%= @exception.class.to_s %> exception raised

+<% elsif @error_message %> +

<%= @error_message %>

<% else %>

<%= @exception.message %>

<% end %>