Send error if normal startup fails too BugzID: 16942
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/a52d4605 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/a52d4605 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/a52d4605 Branch: refs/heads/import Commit: a52d4605160d3326eb52fc860faf49ebb62a75bb Parents: 97dfab1 Author: Robert Newson <[email protected]> Authored: Thu Jan 31 12:36:53 2013 +0000 Committer: Robert Newson <[email protected]> Committed: Thu Jan 31 12:51:19 2013 +0000 ---------------------------------------------------------------------- src/chttpd_db.erl | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/a52d4605/src/chttpd_db.erl ---------------------------------------------------------------------- diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl index 385b0ad..4658f6d 100644 --- a/src/chttpd_db.erl +++ b/src/chttpd_db.erl @@ -118,6 +118,8 @@ changes_callback(timeout, {Prepend, Resp}) -> {ok, {Prepend, Resp1}}; changes_callback({error, Reason}, {_, #httpd{}=Req}) -> chttpd:send_error(Req, Reason); +changes_callback({error, Reason}, {"normal", {"Etag", _Etag}, Req}) -> + chttpd:send_error(Req, Reason); changes_callback({error, Reason}, {_, Resp}) -> chttpd:send_delayed_error(Resp, Reason).
