Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 59304 invoked from network); 1 Aug 2010 23:37:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Aug 2010 23:37:09 -0000 Received: (qmail 15466 invoked by uid 500); 1 Aug 2010 23:37:08 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 15438 invoked by uid 500); 1 Aug 2010 23:37:08 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 15431 invoked by uid 99); 1 Aug 2010 23:37:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 23:37:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Aug 2010 23:37:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 066862388A2C; Sun, 1 Aug 2010 23:35:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r981346 - /couchdb/branches/0.11.x/src/couchdb/couch_rep.erl Date: Sun, 01 Aug 2010 23:35:51 -0000 To: commits@couchdb.apache.org From: fdmanana@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100801233552.066862388A2C@eris.apache.org> Author: fdmanana Date: Sun Aug 1 23:35:51 2010 New Revision: 981346 URL: http://svn.apache.org/viewvc?rev=981346&view=rev Log: Merge revision 981343 from trunk: Add missing clause to the case expression to avoid a case_clause Erlang exception. Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep.erl Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep.erl URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_rep.erl?rev=981346&r1=981345&r2=981346&view=diff ============================================================================== --- couchdb/branches/0.11.x/src/couchdb/couch_rep.erl (original) +++ couchdb/branches/0.11.x/src/couchdb/couch_rep.erl Sun Aug 1 23:35:51 2010 @@ -290,7 +290,9 @@ start_replication_server(Replicator) -> {error, {already_started, Pid}} = supervisor:start_child(couch_rep_sup, Replicator), ?LOG_DEBUG("replication ~p already running at ~p", [RepId, Pid]), - Pid + Pid; + {error, {db_not_found, DbUrl}} -> + throw({db_not_found, <<"could not open ", DbUrl/binary>>}) end; {error, {already_started, Pid}} -> ?LOG_DEBUG("replication ~p already running at ~p", [RepId, Pid]),