couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [39/49] chttpd commit: updated refs/heads/windsor-merge to 554ef74
Date Fri, 01 Aug 2014 09:06:15 GMT
Add error_info clause for nodedown errors

BugzId: 26122


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/57d10786
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/57d10786
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/57d10786

Branch: refs/heads/windsor-merge
Commit: 57d1078691061e728ab6f856eee40f55ed4bbc3f
Parents: d15303f
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Dec 12 12:42:53 2013 -0600
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Jul 31 11:55:10 2014 +0100

----------------------------------------------------------------------
 src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/57d10786/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index a783f91..d671812 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -705,6 +705,8 @@ error_info(file_exists) ->
         "created, the file already exists.">>};
 error_info({r_quorum_not_met, Reason}) ->
     {412, <<"read_quorum_not_met">>, Reason};
+error_info({error, {nodedown, Reason}}) ->
+    {412, <<"nodedown">>, Reason};
 error_info({maintenance_mode, Node}) ->
     {412, <<"nodedown">>, Node};
 error_info({w_quorum_not_met, Reason}) ->


Mime
View raw message