wohali commented on a change in pull request #1406: Add initial Elixir suite
URL: https://github.com/apache/couchdb/pull/1406#discussion_r207938757
 
 

 ##########
 File path: src/chttpd/src/chttpd_misc.erl
 ##########
 @@ -240,7 +240,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}])
 
 Review comment:
   Unrelated change - can we move this out of this PR please?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to