You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/03/20 15:37:48 UTC
[2/6] git commit: Core: Added %backend tag to 404 error.
Core: Added %backend tag to 404 error.
This change will allow to report this error correctly with
information about current driver and provider to the client.
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/6c1065fe
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/6c1065fe
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/6c1065fe
Branch: refs/heads/master
Commit: 6c1065fef6fd366922de6169022c5fa989f2c01c
Parents: 1440c59
Author: Michal Fojtik <mf...@redhat.com>
Authored: Tue Mar 20 14:25:08 2012 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Tue Mar 20 15:38:35 2012 +0100
----------------------------------------------------------------------
server/views/errors/404.xml.haml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/6c1065fe/server/views/errors/404.xml.haml
----------------------------------------------------------------------
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