You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/03/20 14:28:08 UTC
[PATCH core 5/6] Core: Added %backend tag to 404 error.
From: Michal Fojtik <mf...@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 <mf...@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