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] Core: Added %backend tag to 404 error.
Date Tue, 20 Mar 2012 13:28:08 GMT
From: Michal Fojtik <mfojtik@redhat.com>

This change will allow to report this error correctly with
information about current driver and provider to the client.

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

diff --git a/server/views/errors/404.xml.haml b/server/views/errors/404.xml.haml
index 47aede6..5de624c 100644
--- a/server/views/errors/404.xml.haml
+++ b/server/views/errors/404.xml.haml
@@ -1,2 +1,3 @@
 %error{:url => "#{request.env['REQUEST_URI']}", :status => "#{response.status}"}
+  %backend{ :driver => driver_symbol, :provider => "#{Thread::current[:provider] ||
ENV['API_PROVIDER'] || 'default'}" }
   %message Resource not found
-- 
1.7.9.1


Mime
View raw message