couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [couchdb] branch master updated: Don't wrap real error in badmatch exception
Date Mon, 05 Jun 2017 22:01:53 GMT
This is an automated email from the ASF dual-hosted git repository.

eiri pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 50fc4ce  Don't wrap real error in badmatch exception
50fc4ce is described below

commit 50fc4ce77373b310f8c35ef7f0d4ed80370c96da
Author: Eric Avdey <eiri@eiri.ca>
AuthorDate: Mon Jun 5 18:17:27 2017 -0300

    Don't wrap real error in badmatch exception
---
 src/couch_mrview/src/couch_mrview_util.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/couch_mrview/src/couch_mrview_util.erl b/src/couch_mrview/src/couch_mrview_util.erl
index 3e6a86b..6bb8d07 100644
--- a/src/couch_mrview/src/couch_mrview_util.erl
+++ b/src/couch_mrview/src/couch_mrview_util.erl
@@ -87,6 +87,8 @@ get_view_index_state(Db, DDoc, ViewName, Args0, RetryCount) ->
         exit:{Reason, _} when Reason == noproc; Reason == normal ->
             timer:sleep(?GET_VIEW_RETRY_DELAY),
             get_view_index_state(Db, DDoc, ViewName, Args0, RetryCount - 1);
+        error:{badmatch, Error} ->
+            throw(Error);
         Error ->
             throw(Error)
     end.

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message