iilyak closed pull request #1193: Use `chttpd:send_error/2` in mango_httpd
URL: https://github.com/apache/couchdb/pull/1193
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/mango/src/mango_httpd.erl b/src/mango/src/mango_httpd.erl
index 3ed51e2f03..2e8777135d 100644
--- a/src/mango/src/mango_httpd.erl
+++ b/src/mango/src/mango_httpd.erl
@@ -41,7 +41,7 @@ handle_req(#httpd{} = Req, Db0) ->
             case mango_error:info(Module, Reason) of
             {500, ErrorStr, ReasonStr} ->
                 Stack = erlang:get_stacktrace(),
-                chttpd:send_error(Req, 500, [], ErrorStr, ReasonStr, Stack);
+                chttpd:send_error(Req, {ErrorStr, ReasonStr, Stack});
             {Code, ErrorStr, ReasonStr} ->
                 chttpd:send_error(Req, Code, ErrorStr, ReasonStr)
             end


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to