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:
parent
d043148f4a
commit
dd1eaee0cd
1 changed files with 1 additions and 0 deletions
|
@ -972,6 +972,7 @@ next(Req, State, StatusCode) when is_integer(StatusCode) ->
|
||||||
respond(Req, State, StatusCode) ->
|
respond(Req, State, StatusCode) ->
|
||||||
terminate(cowboy_req:reply(StatusCode, Req), State).
|
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},
|
error_terminate(Req, #state{handler=Handler, handler_state=HandlerState},
|
||||||
Class, Reason, Callback) ->
|
Class, Reason, Callback) ->
|
||||||
Stacktrace = erlang:get_stacktrace(),
|
Stacktrace = erlang:get_stacktrace(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue