summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2011-06-28 23:01:30 +0000
committerRobert Newson <robert.newson@cloudant.com>2011-07-05 12:35:53 +0100
commitd6b9664ef4b928585ddb76df5b693d9d66f61ba0 (patch)
treeb63529dbf76709a57bdb4b5d90675369064b06c6 /apps
parent2e119bc5ddb41f9f95af567ba4c6fd02933766a6 (diff)
Backport revision 1140886 from trunk
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
Diffstat (limited to 'apps')
-rw-r--r--apps/couch/src/couch_rep.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/src/couch_rep.erl b/apps/couch/src/couch_rep.erl
index 966d6872..02f7bee7 100644
--- a/apps/couch/src/couch_rep.erl
+++ b/apps/couch/src/couch_rep.erl
@@ -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
@@ -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) ->