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 2017/06/05 22:01:53 UTC
[couchdb] branch master updated: Don't wrap real error in badmatch
exception
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 <ei...@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" <co...@couchdb.apache.org>'].