Reorder clause 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/52b3bc5f Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/52b3bc5f Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/52b3bc5f Branch: refs/heads/import Commit: 52b3bc5f333de46b30915ab3337da3cef7d5cd58 Parents: 20001d1 Author: Robert Newson <[email protected]> Authored: Tue Mar 5 18:06:58 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/52b3bc5f/src/chttpd.erl ---------------------------------------------------------------------- diff --git a/src/chttpd.erl b/src/chttpd.erl index 6027020..749f42b 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -708,11 +708,11 @@ error_info({missing_stub, Reason}) -> {412, <<"missing_stub">>, Reason}; error_info(not_implemented) -> {501, <<"not_implemented">>, <<"this feature is not yet implemented">>}; +error_info({Error, null}) -> + {500, couch_util:to_binary(Error), null}; error_info(timeout) -> {500, <<"timeout">>, <<"The request could not be processed in a reasonable" " amount of time.">>}; -error_info({Error, null}) -> - {500, couch_util:to_binary(Error), null}; error_info({Error, Reason}) -> {500, couch_util:to_binary(Error), couch_util:to_binary(Reason)}; error_info({Error, nil, _Stack}) ->
