aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 f779612..63b5ce4 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -999,8 +999,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},