deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/4] git commit: Core: When reporting internal server error, check if backtrace is nil
Date Thu, 08 Nov 2012 14:03:00 GMT
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 <mfojtik@redhat.com>
Authored: Thu Oct 25 14:26:27 2012 +0200
Committer: Michal fojtik <mfojtik@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


Mime
View raw message