mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Merge branch 'fix-rest-stacktrace' of https://github.com/danielwhite/cowboy into 1.0.x
This commit is contained in:
commit
df1b3dcd0e
1 changed files with 1 additions and 1 deletions
|
@ -1003,8 +1003,8 @@ terminate(Req, State=#state{env=Env}) ->
|
|||
|
||||
error_terminate(Req, State=#state{handler=Handler, handler_state=HandlerState},
|
||||
Class, Reason, Callback) ->
|
||||
rest_terminate(Req, State),
|
||||
Stacktrace = erlang:get_stacktrace(),
|
||||
rest_terminate(Req, State),
|
||||
cowboy_req:maybe_reply(Stacktrace, Req),
|
||||
erlang:Class([
|
||||
{reason, Reason},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue