You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ei...@apache.org on 2019/06/20 14:18:21 UTC

[couchdb] 03/03: Fix exception in cache auth doc update

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

eiri pushed a commit to branch prototype/auth-cache-fixes
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a6a420e15a334efde0aeb321fdf1011a0c9bed4a
Author: Eric Avdey <ei...@eiri.ca>
AuthorDate: Thu Jun 20 10:44:07 2019 -0300

    Fix exception in cache auth doc update
---
 src/chttpd/src/chttpd_auth_cache.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chttpd/src/chttpd_auth_cache.erl b/src/chttpd/src/chttpd_auth_cache.erl
index fc1ee62..e986af6 100644
--- a/src/chttpd/src/chttpd_auth_cache.erl
+++ b/src/chttpd/src/chttpd_auth_cache.erl
@@ -231,7 +231,7 @@ update_doc_ignoring_conflict(DbName, Doc) ->
     try
         fabric2_db:update_doc(DbName, Doc)
     catch
-        throw:conflict ->
+        error:conflict ->
             ok
     end.