0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Merge branch 'dont_overwrite_stacktrace' of git://github.com/urbanserj/cowboy

This commit is contained in:
Loïc Hoguin 2013-06-08 21:50:58 +02:00
commit a55c20c4ef

View file

@ -1092,7 +1092,7 @@ terminate(Req, State=#state{env=Env}) ->
-spec error_terminate(cowboy_req:req(), #state{}) -> no_return().
error_terminate(Req, State) ->
rest_terminate(Req, State),
erlang:throw({?MODULE, error}).
erlang:raise(throw, {?MODULE, error}, erlang:get_stacktrace()).
rest_terminate(Req, #state{handler=Handler, handler_state=HandlerState}) ->
case erlang:function_exported(Handler, rest_terminate, 2) of