deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 7/7] Minor edit to handle case of no backtrace in ValidationFailure
Date Tue, 28 Feb 2012 16:10:55 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 server/views/errors/400.html.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/views/errors/400.html.haml b/server/views/errors/400.html.haml
index 1a135f9..aeae736 100644
--- a/server/views/errors/400.html.haml
+++ b/server/views/errors/400.html.haml
@@ -19,7 +19,7 @@
     %h3 Backtrace
     %ul{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme'
=> 'e'}
       %li
-        %pre=@error.backtrace.join("\n")
+        %pre=(@error.backtrace.nil?) ? "n/a" : @error.backtrace.join("\n")
 
   %div{ 'data-role' => :collapsible, 'data-collapsed' => "true"}
     %h3 Parameters
-- 
1.7.6.5


Mime
View raw message