You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/07/14 16:14:18 UTC

[couchdb] branch master updated: Make replication filter fetch error for _replicate return a 404

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 23127c1  Make replication filter fetch error for _replicate return a 404
23127c1 is described below

commit 23127c121278cfaddb112df65176c0c84dd4513c
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Fri Jul 14 02:31:09 2017 -0400

    Make replication filter fetch error for _replicate return a 404
    
    Previously it returned a 500 error.
---
 src/chttpd/src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index 3fcb51f..ea92e03 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -844,6 +844,8 @@ error_info(not_found) ->
     {404, <<"not_found">>, <<"missing">>};
 error_info({not_found, Reason}) ->
     {404, <<"not_found">>, Reason};
+error_info({filter_fetch_error, Reason}) ->
+    {404, <<"not_found">>, Reason};
 error_info({not_acceptable, Reason}) ->
     {406, <<"not_acceptable">>, Reason};
 error_info(conflict) ->

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].