Reorder clauses to reduce diff noise
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/67e6a2bf Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/67e6a2bf Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/67e6a2bf Branch: refs/heads/import Commit: 67e6a2bf5e105f1652c038e2d7040420c89ff966 Parents: bbf6ed2 Author: Robert Newson <[email protected]> Authored: Tue Mar 5 17:13:04 2013 -0600 Committer: Robert Newson <[email protected]> Committed: Wed Mar 6 12:22:37 2013 -0600 ---------------------------------------------------------------------- src/chttpd.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/67e6a2bf/src/chttpd.erl ---------------------------------------------------------------------- diff --git a/src/chttpd.erl b/src/chttpd.erl index 0346790..54947a3 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -680,10 +680,10 @@ error_info(conflict) -> {409, <<"conflict">>, <<"Document update conflict.">>}; error_info({conflict, _}) -> {409, <<"conflict">>, <<"Document update conflict.">>}; -error_info({forbidden, Msg}) -> - {403, <<"forbidden">>, Msg}; error_info({forbidden, Error, Msg}) -> {403, Error, Msg}; +error_info({forbidden, Msg}) -> + {403, <<"forbidden">>, Msg}; error_info({unauthorized, Msg}) -> {401, <<"unauthorized">>, Msg}; error_info(file_exists) ->
