aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-02 21:56:08 +0200
committerLoïc Hoguin <[email protected]>2015-07-02 21:56:08 +0200
commitdf1b3dcd0e29273b1dc5fd1fae4868786c5f1607 (patch)
tree0ee0c8f6ba075245d1e73cd72a67a60d5b33f0e1 /src
parent82addb8b44183b43451babcbd39a82ccb54724a7 (diff)
parent57671cbbb072041fa81fa850c3990961e4e120b8 (diff)
downloadcowboy-df1b3dcd0e29273b1dc5fd1fae4868786c5f1607.tar.gz
cowboy-df1b3dcd0e29273b1dc5fd1fae4868786c5f1607.tar.bz2
cowboy-df1b3dcd0e29273b1dc5fd1fae4868786c5f1607.zip
Merge branch 'fix-rest-stacktrace' of https://github.com/danielwhite/cowboy into 1.0.x
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 321b609..fe72583 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -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},