couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1140887 - /couchdb/branches/1.1.x/src/couchdb/couch_rep.erl
Date Tue, 28 Jun 2011 23:01:31 GMT
Author: fdmanana
Date: Tue Jun 28 23:01:30 2011
New Revision: 1140887

URL: http://svn.apache.org/viewvc?rev=1140887&view=rev
Log:
Backport revision 1140886 from trunk

    Improved error message in the replicator

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_rep.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_rep.erl?rev=1140887&r1=1140886&r2=1140887&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_rep.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_rep.erl Tue Jun 28 23:01:30 2011
@@ -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) ->



Mime
View raw message