deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 5/6] CIMI: Added backtrace to XML output when server respond with 50x code
Date Tue, 17 Jan 2012 11:52:58 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/views/cimi/errors/500.xml.haml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/server/views/cimi/errors/500.xml.haml b/server/views/cimi/errors/500.xml.haml
index 69c242e..bffa9ee 100644
--- a/server/views/cimi/errors/500.xml.haml
+++ b/server/views/cimi/errors/500.xml.haml
@@ -1,5 +1,6 @@
 %error{:url => "#{request.env['REQUEST_URI']}", :status => "#{response.status}"}
   %kind backend_error
+  %message< #{cdata @error.message}
   %backend{ :driver => driver_symbol }
     %code=response.status
-  %message< #{cdata @error.message}
+  %backtrace< #{cdata @error.backtrace.join("\n")}
-- 
1.7.4.4


Mime
View raw message