deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/6] git commit: Core: Added %backend tag to 404 error.
Date Tue, 20 Mar 2012 14:37:48 GMT
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 <mfojtik@redhat.com>
Authored: Tue Mar 20 14:25:08 2012 +0100
Committer: Michal fojtik <mfojtik@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


Mime
View raw message