iilyak commented on issue #1193: Use `chttpd:send_error/2` in mango_httpd URL: https://github.com/apache/couchdb/pull/1193#issuecomment-370957348 > Using chttpd:send_error/4 seems to be closer to the original intent? It's public func as well. `chttpd:send_error/4` doesn't support passing of stack trace. The stack trace is converted [here](https://github.com/apache/couchdb/blob/master/src/chttpd/src/chttpd.erl#L1003). There are no calls to `json_stack/1` from `chttpd:send_error/4`. `chttpd:send_error/4` calls `chttpd:send_error/5` with `Stack = []`.
---------------------------------------------------------------- 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