You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/11/08 15:03:00 UTC

[4/4] git commit: Core: When reporting internal server error, check if backtrace is nil

Core: When reporting internal server error, check if backtrace is nil


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/419ea477
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/419ea477
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/419ea477

Branch: refs/heads/master
Commit: 419ea477e3061c7e4ab260e074952439767fc210
Parents: 587ff9e
Author: Michal Fojtik <mf...@redhat.com>
Authored: Thu Oct 25 14:26:27 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Thu Nov 8 15:02:35 2012 +0100

----------------------------------------------------------------------
 server/views/errors/500.html.haml |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/419ea477/server/views/errors/500.html.haml
----------------------------------------------------------------------
diff --git a/server/views/errors/500.html.haml b/server/views/errors/500.html.haml
index 1b04a21..8cd3c74 100644
--- a/server/views/errors/500.html.haml
+++ b/server/views/errors/500.html.haml
@@ -18,11 +18,12 @@
     %li
       %pre= bt @error.backtrace
 
-  %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
-    %h3 Backtrace
-    %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'e'}
-      %li
-        %pre= h @error.backtrace.join("\n")
+  - if @error.backtrace
+    %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
+      %h3 Backtrace
+      %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'e'}
+        %li
+          %pre= h @error.backtrace.join("\n")
 
   %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
     %h3 Parameters