Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07701956C for ; Tue, 20 Mar 2012 13:27:36 +0000 (UTC) Received: (qmail 53058 invoked by uid 500); 20 Mar 2012 13:27:35 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 53043 invoked by uid 500); 20 Mar 2012 13:27:35 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 53034 invoked by uid 99); 20 Mar 2012 13:27:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 13:27:35 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mfojtik@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 13:27:29 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2KDR9GD018601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Mar 2012 09:27:09 -0400 Received: from dhcp-29-121.brq.redhat.com (dhcp-29-121.brq.redhat.com [10.34.29.121]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2KDR0OE031045 for ; Tue, 20 Mar 2012 09:27:08 -0400 From: mfojtik@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH core 5/6] Core: Added %backend tag to 404 error. Date: Tue, 20 Mar 2012 14:28:08 +0100 Message-Id: <1332250089-31884-5-git-send-email-mfojtik@redhat.com> In-Reply-To: <1332250089-31884-1-git-send-email-mfojtik@redhat.com> References: <1332250089-31884-1-git-send-email-mfojtik@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org From: Michal Fojtik This change will allow to report this error correctly with information about current driver and provider to the client. Signed-off-by: Michal fojtik --- 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