You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/09/16 20:41:00 UTC
[couchdb] 01/01: avoid badmatch in error cases
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch nouveau-badmatch-fix
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 9636f8bd9708fbae1fd4c89686cbfca437a20fc0
Author: Robert Newson <rn...@apache.org>
AuthorDate: Sat Sep 16 21:39:21 2023 +0100
avoid badmatch in error cases
if :update returns an error we will now return this as the rexi reply,
making for a better reported error.
---
src/nouveau/src/nouveau_index_updater.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nouveau/src/nouveau_index_updater.erl b/src/nouveau/src/nouveau_index_updater.erl
index dfc6eb122..57cc8fc7c 100644
--- a/src/nouveau/src/nouveau_index_updater.erl
+++ b/src/nouveau/src/nouveau_index_updater.erl
@@ -108,7 +108,7 @@ update(#index{} = Index) ->
),
nouveau_api:drain_async_responses(Acc1#acc.reqids, 0),
ibrowse:stop_worker_process(ConnPid),
- ok = nouveau_api:set_update_seq(Index, Acc1#acc.update_seq, NewCurSeq)
+ nouveau_api:set_update_seq(Index, Acc1#acc.update_seq, NewCurSeq)
after
ret_os_process(Proc)
end