aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-07-27 17:58:27 +0200
committerLoïc Hoguin <[email protected]>2015-07-27 17:58:27 +0200
commitdd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3 (patch)
treeac62529bf05c9b988f8be371207755546ccb6ba3 /src/cowboy_rest.erl
parentd043148f4a9f5fa4ca4407c166ee15a6a17cff8c (diff)
downloadcowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.tar.gz
cowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.tar.bz2
cowboy-dd1eaee0cdcb79cd4456ba669f1ac3ed16b476d3.zip
Add spec to silence a Dialyzer warning
Yes I know the function never returns. :-)
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl1
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(),