Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2EF3D7CC for ; Mon, 1 Oct 2012 12:27:59 +0000 (UTC) Received: (qmail 17947 invoked by uid 500); 1 Oct 2012 12:27:59 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 17094 invoked by uid 500); 1 Oct 2012 12:27:55 -0000 Mailing-List: contact commits-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 commits@deltacloud.apache.org Received: (qmail 17063 invoked by uid 99); 1 Oct 2012 12:27:54 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 12:27:54 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 197391E845; Mon, 1 Oct 2012 12:27:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mfojtik@apache.org To: commits@deltacloud.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: Core: Report unknown frontend properly (DTACLOUD-331) Message-Id: <20121001122754.197391E845@tyr.zones.apache.org> Date: Mon, 1 Oct 2012 12:27:54 +0000 (UTC) Updated Branches: refs/heads/master caf973290 -> 761904939 Core: Report unknown frontend properly (DTACLOUD-331) Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/76190493 Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/76190493 Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/76190493 Branch: refs/heads/master Commit: 761904939b7b8e7ded58a81612b2f9e39a2a6d8c Parents: caf9732 Author: Michal Fojtik Authored: Mon Oct 1 10:44:02 2012 +0200 Committer: Michal fojtik Committed: Mon Oct 1 14:28:02 2012 +0200 ---------------------------------------------------------------------- server/config.ru | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltacloud/blob/76190493/server/config.ru ---------------------------------------------------------------------- diff --git a/server/config.ru b/server/config.ru index 6a28352..8ef20e5 100644 --- a/server/config.ru +++ b/server/config.ru @@ -54,6 +54,10 @@ end # different root_url's # frontends.each do |frontend| + if Deltacloud[frontend.to_sym].nil? + puts "ERROR: Unknown frontend (#{frontend}). Valid values are 'deltacloud,cimi,ec2'" + exit(1) + end Deltacloud[frontend.to_sym].require! routes.merge!({ Deltacloud[frontend].root_url => Deltacloud[frontend].klass