couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [01/23] couch-replicator commit: updated refs/heads/1843-feature-bigcouch to 4965655
Date Thu, 01 May 2014 14:06:48 GMT
Repository: couchdb-couch-replicator
Updated Branches:
  refs/heads/1843-feature-bigcouch 2db29cc1f -> 4965655ca


Unknown errors on _replicate POST are 500's not 404's


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/01e49b42
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/01e49b42
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/01e49b42

Branch: refs/heads/1843-feature-bigcouch
Commit: 01e49b42f2fb3a7f70b55b9ab785d8b7bfe7b71a
Parents: 7089f60
Author: Robert Newson <rnewson@apache.org>
Authored: Mon Apr 29 19:47:20 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon Apr 29 19:47:20 2013 +0100

----------------------------------------------------------------------
 src/couch_replicator_httpd.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/01e49b42/src/couch_replicator_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_httpd.erl b/src/couch_replicator_httpd.erl
index eccf885..c0fe004 100644
--- a/src/couch_replicator_httpd.erl
+++ b/src/couch_replicator_httpd.erl
@@ -35,7 +35,7 @@ handle_req(#httpd{method = 'POST', user_ctx = UserCtx} = Req) ->
     case couch_replicator:replicate(Rep) of
     {error, {Error, Reason}} ->
         send_json(
-            Req, 404,
+            Req, 500,
             {[{error, to_binary(Error)}, {reason, to_binary(Reason)}]});
     {error, not_found} ->
         % Tried to cancel a replication that didn't exist.


Mime
View raw message