couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r981346 - /couchdb/branches/0.11.x/src/couchdb/couch_rep.erl
Date Sun, 01 Aug 2010 23:35:51 GMT
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]),



Mime
View raw message