diff options
author | Loïc Hoguin <[email protected]> | 2015-07-27 17:58:27 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-07-27 17:58:27 +0200 |
commit | dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3 (patch) | |
tree | ac62529bf05c9b988f8be371207755546ccb6ba3 | |
parent | d043148f4a9f5fa4ca4407c166ee15a6a17cff8c (diff) | |
download | cowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.tar.gz cowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.tar.bz2 cowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.zip |
Add spec to silence a Dialyzer warning
Yes I know the function never returns. :-)
-rw-r--r-- | src/cowboy_rest.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl index cf24050..0ca9ec0 100644 --- a/src/cowboy_rest.erl +++ b/src/cowboy_rest.erl @@ -972,6 +972,7 @@ next(Req, State, StatusCode) when is_integer(StatusCode) -> respond(Req, State, StatusCode) -> terminate(cowboy_req:reply(StatusCode, Req), State). +-spec error_terminate(cowboy_req:req(), #state{}, atom(), any(), atom()) -> no_return(). error_terminate(Req, #state{handler=Handler, handler_state=HandlerState}, Class, Reason, Callback) -> Stacktrace = erlang:get_stacktrace(), |