You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/09/20 10:33:36 UTC

[GitHub] janl commented on a change in pull request #1406: Add initial Elixir suite

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

 ##########
 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:
   Done in #174677fc8

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services