diff options
author | Loïc Hoguin <[email protected]> | 2013-06-08 21:50:58 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-06-08 21:50:58 +0200 |
commit | a55c20c4ef502c5e134562cb1b6a315c908126b4 (patch) | |
tree | 0b6b2b5ee4fc5a187a6dc31e63f9173e04fe224b /src | |
parent | 830d4c85c8ca764fbd0d419f82facf70fce7761d (diff) | |
parent | 1577ec83645f4b4a76e8ac6b4d9cc59376ce38d4 (diff) | |
download | cowboy-a55c20c4ef502c5e134562cb1b6a315c908126b4.tar.gz cowboy-a55c20c4ef502c5e134562cb1b6a315c908126b4.tar.bz2 cowboy-a55c20c4ef502c5e134562cb1b6a315c908126b4.zip |
Merge branch 'dont_overwrite_stacktrace' of git://github.com/urbanserj/cowboy
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_rest.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl index ecbe7bc..34bfce1 100644 --- a/src/cowboy_rest.erl +++ b/src/cowboy_rest.erl @@ -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 |