diff options
Diffstat (limited to 'src/mango/src/mango_httpd.erl')
-rw-r--r-- | src/mango/src/mango_httpd.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mango/src/mango_httpd.erl b/src/mango/src/mango_httpd.erl index 3ed51e2f0..2e8777135 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 |