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

jan pushed a commit to branch feat/thing
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4348ba7acb294b96075fdfe8f769573b658dd7f9
Author: Jan Lehnardt <[email protected]>
AuthorDate: Thu Sep 20 12:34:47 2018 +0200

    port experimental change that came up in the elixir test suite branch
---
 src/chttpd/src/chttpd_misc.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/chttpd/src/chttpd_misc.erl b/src/chttpd/src/chttpd_misc.erl
index c72ef7c..0df3607 100644
--- a/src/chttpd/src/chttpd_misc.erl
+++ b/src/chttpd/src/chttpd_misc.erl
@@ -241,7 +241,9 @@ cancel_replication(PostBody, Ctx) ->
             {error, badrpc};
         Else ->
             % Unclear what to do here -- pick the first error?
-            hd(Else)
+            % Except try ignoring any {error, not_found} responses
+            % because we'll always get two of those
+            hd(Else -- [{error, not_found}])
         end
     end.
 

Reply via email to