diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-08-01 23:34:53 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-08-01 23:34:53 +0000 |
commit | b13c05880ab66855d41d5556bf898de432507140 (patch) | |
tree | fb60ffe522c125dafd455cc913e49e18c43b576a /src/couchdb | |
parent | a4c63436226d3ad2c29ab5f634b40d8f82307d4e (diff) |
Merge revision 981343 from trunk:
Add missing clause to the case expression to avoid a case_clause Erlang exception.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@981344 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_rep.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 1dd816ac..a54277a3 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -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]), |