couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [47/50] chttpd commit: updated refs/heads/master to 58020ab
Date Thu, 28 Aug 2014 12:00:10 GMT
Added error_info for maintenance mode errors


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

Branch: refs/heads/master
Commit: 4dc2fcec0619962936a37cbf486dc429c283334f
Parents: 554ef74
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sat Aug 16 21:24:39 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Sat Aug 16 21:24:39 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/4dc2fcec/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index fab6695..c4a4fd0 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -725,6 +725,8 @@ error_info({error, {nodedown, Reason}}) ->
     {412, <<"nodedown">>, Reason};
 error_info({maintenance_mode, Node}) ->
     {412, <<"nodedown">>, Node};
+error_info({maintenance_mode, nil, Node}) ->
+    {412, <<"nodedown">>, Node};
 error_info({w_quorum_not_met, Reason}) ->
     {500, <<"write_quorum_not_met">>, Reason};
 error_info(request_uri_too_long) ->


Mime
View raw message