aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index b87c7df..5f96b53 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -1086,7 +1086,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