Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Backport revision 1140886 from trunk
Browse files Browse the repository at this point in the history
    Improved error message in the replicator


git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1140887 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fdmanana committed Jun 28, 2011
1 parent 7e906e6 commit d698504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/couchdb/couch_rep.erl
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ start_replication_server(Replicator) ->
throw({db_not_found, <<"could not open ", DbUrl/binary>>});
{error, {unauthorized, DbUrl}} ->
throw({unauthorized,
<<"unauthorized to access database ", DbUrl/binary>>});
<<"unauthorized to access or create database ", DbUrl/binary>>});
{error, {'EXIT', {badarg,
[{erlang, apply, [gen_server, start_link, undefined]} | _]}}} ->
% Clause to deal with a change in the supervisor module introduced
Expand All @@ -338,7 +338,7 @@ start_replication_server(Replicator) ->
throw({db_not_found, <<"could not open ", DbUrl/binary>>});
{error, {{unauthorized, DbUrl}, _}} ->
throw({unauthorized,
<<"unauthorized to access database ", DbUrl/binary>>})
<<"unauthorized to access or create database ", DbUrl/binary>>})
end.

compare_replication_logs(SrcDoc, TgtDoc) ->
Expand Down

0 comments on commit d698504

Please sign in to comment.