summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-08-01 23:34:01 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-08-01 23:34:01 +0000
commit66784cbc76f06ca1c3bdd6a46f4c7b9bd75fb4e9 (patch)
treefcaeb6158ab8c4127ff0e20bf815fb3dc982757e /src
parent69360c426a49286b8d32cc9022af3c02a362cdf2 (diff)
Add missing clause to the case expression to avoid a case_clause Erlang exception.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@981343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_rep.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index 8a5d7553..d3db8a68 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -297,7 +297,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]),