Browse Source

Add spec to silence a Dialyzer warning

Yes I know the function never returns. :-)
Loïc Hoguin 10 years ago
parent
commit
dd1eaee0cd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/cowboy_rest.erl

+ 1 - 0
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(),