You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2013/04/29 20:47:31 UTC

git commit: updated refs/heads/master to d271042

Updated Branches:
  refs/heads/master a342abfb3 -> d27104261


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


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

Branch: refs/heads/master
Commit: d271042613abe9245b7e28d4a4b82bef3e3170fd
Parents: a342abf
Author: Robert Newson <rn...@apache.org>
Authored: Mon Apr 29 19:47:20 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Apr 29 19:47:20 2013 +0100

----------------------------------------------------------------------
 .../src/couch_replicator_httpd.erl                 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d2710426/src/couch_replicator/src/couch_replicator_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator/src/couch_replicator_httpd.erl b/src/couch_replicator/src/couch_replicator_httpd.erl
index eccf885..c0fe004 100644
--- a/src/couch_replicator/src/couch_replicator_httpd.erl
+++ b/src/couch_replicator/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.