You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/02/29 11:52:33 UTC

[1/7] git commit: Minor edit to handle case of no backtrace in ValidationFailure

Updated Branches:
  refs/heads/master a75ac34bc -> a1f81d29d


Minor edit to handle case of no backtrace in ValidationFailure


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

Branch: refs/heads/master
Commit: a1f81d29dfd0e09be45f4e281f68cdcc1f945a4a
Parents: 865fdfa
Author: marios <ma...@redhat.com>
Authored: Tue Feb 28 17:53:24 2012 +0200
Committer: marios <ma...@redhat.com>
Committed: Wed Feb 29 12:51:43 2012 +0200

----------------------------------------------------------------------
 server/views/errors/400.html.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a1f81d29/server/views/errors/400.html.haml
----------------------------------------------------------------------
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