You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:00:10 UTC

[47/50] chttpd commit: updated refs/heads/master to 58020ab

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 <pa...@gmail.com>
Authored: Sat Aug 16 21:24:39 2014 -0500
Committer: Paul J. Davis <pa...@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) ->