deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Core: Fixed error in 501 XML view
Date Wed, 07 Mar 2012 16:26:11 GMT
Updated Branches:
  refs/heads/master 7b10fa8fc -> a1a15d188


Core: Fixed error in 501 XML view


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

Branch: refs/heads/master
Commit: a1a15d18882b385b2d1e2970fd18e67ff81dfebf
Parents: 7b10fa8
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed Mar 7 17:27:11 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Wed Mar 7 17:27:11 2012 +0100

----------------------------------------------------------------------
 server/views/errors/500.xml.haml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a1a15d18/server/views/errors/500.xml.haml
----------------------------------------------------------------------
diff --git a/server/views/errors/500.xml.haml b/server/views/errors/500.xml.haml
index 0b2d14a..b3e71e2 100644
--- a/server/views/errors/500.xml.haml
+++ b/server/views/errors/500.xml.haml
@@ -5,8 +5,8 @@
   %backend{ :driver => driver_symbol, :provider => "#{Thread::current[:provider] ||
ENV['API_PROVIDER'] || 'default'}" }
     %code=response.status
   %message< #{cdata @error.message}
-  - if @error.respond_to? :backtrace
-    %backtrace=cdata @error.backtrace.join("\n")
+  - if @error.respond_to?(:backtrace) and !@error.backtrace.nil?
+    %backtrace=cdata(@error.backtrace.join("\n"))
   - if params
     %request
       - params.each do |k, v|


Mime
View raw message