diff options
author | Jan Lehnardt <jan@apache.org> | 2018-11-07 19:19:54 +0100 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2018-11-07 13:19:54 -0500 |
commit | f9bd22712e995c7efe8ff5032e817fbb6de9bdb7 (patch) | |
tree | 5f5d0a68b7ca820b629b27357009be110c1114a3 | |
parent | 93a04b86f3e13295e34fe552f7c48b6e0f46b063 (diff) | |
download | couchdb-f9bd22712e995c7efe8ff5032e817fbb6de9bdb7.tar.gz |
port experimental change that came up in the elixir test suite branch (#1614)
-rw-r--r-- | src/chttpd/src/chttpd_misc.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_misc.erl b/src/chttpd/src/chttpd_misc.erl index 7b417b442..39ffa2368 100644 --- a/src/chttpd/src/chttpd_misc.erl +++ b/src/chttpd/src/chttpd_misc.erl @@ -242,7 +242,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. |