diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-14 18:57:31 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 11:18:45 -0400 |
commit | 6f4a995150978e67539546c3da804126e3a36389 (patch) | |
tree | 884e6f8ac8ba5a4b76c93fa68d0711235168727e /src/chttpd_view.erl | |
parent | c3ff956cfa00e71e652062231991b5a22ec520f5 (diff) |
fix error clause of view callbacks
Diffstat (limited to 'src/chttpd_view.erl')
-rw-r--r-- | src/chttpd_view.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd_view.erl b/src/chttpd_view.erl index f49e232d..8d071cac 100644 --- a/src/chttpd_view.erl +++ b/src/chttpd_view.erl @@ -65,7 +65,7 @@ view_callback(complete, {_, Resp}) -> send_chunk(Resp, "\r\n]}"), end_json_response(Resp), {ok, Resp}; -view_callback({error, Reason}, Resp) -> +view_callback({error, Reason}, {_, Resp}) -> chttpd:send_chunked_error(Resp, {error, Reason}). extract_view_type(_ViewName, [], _IsReduce) -> |