incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r1155966 - /incubator/deltacloud/trunk/server/views/errors/403.html.haml
Date Tue, 09 Aug 2011 23:13:14 GMT
Author: lutter
Date: Tue Aug  9 23:13:14 2011
New Revision: 1155966

URL: http://svn.apache.org/viewvc?rev=1155966&view=rev
Log:
* views/errors/403.html.haml: don't barf on errors with nil backtrace

Modified:
    incubator/deltacloud/trunk/server/views/errors/403.html.haml

Modified: incubator/deltacloud/trunk/server/views/errors/403.html.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/views/errors/403.html.haml?rev=1155966&r1=1155965&r2=1155966&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/views/errors/403.html.haml (original)
+++ incubator/deltacloud/trunk/server/views/errors/403.html.haml Tue Aug  9 23:13:14 2011
@@ -15,11 +15,12 @@
       - else
         %em No details
 
-  %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
-    %h3 Backtrace
-    %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme'
=> 'e'}
-      %li
-        %pre=@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=@error.backtrace.join("\n")
 
   %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
     %h3 Parameters



Mime
View raw message