0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add spec to silence a Dialyzer warning

Yes I know the function never returns. :-)
This commit is contained in:
Loïc Hoguin 2015-07-27 17:58:27 +02:00
parent d043148f4a
commit dd1eaee0cd

View file

@ -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(),