You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2012/02/28 17:10:55 UTC
[PATCH 7/7] Minor edit to handle case of no backtrace in ValidationFailure
From: marios <ma...@redhat.com>
Signed-off-by: marios <ma...@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