aboutsummaryrefslogtreecommitdiffstats
path: root/test/old_http_SUITE_data/http_errors.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/old_http_SUITE_data/http_errors.erl')
-rw-r--r--test/old_http_SUITE_data/http_errors.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old_http_SUITE_data/http_errors.erl b/test/old_http_SUITE_data/http_errors.erl
index 14e3d09..9e376a2 100644
--- a/test/old_http_SUITE_data/http_errors.erl
+++ b/test/old_http_SUITE_data/http_errors.erl
@@ -4,10 +4,12 @@
-export([init/2]).
+-spec init(_, _) -> no_return().
init(Req, _Opts) ->
#{'case' := Case} = cowboy_req:match_qs(['case'], Req),
case_init(Case, Req).
+-spec case_init(_, _) -> no_return().
case_init(<<"init_before_reply">> = Case, _Req) ->
ct_helper_error_h:ignore(?MODULE, case_init, 2),
error(Case);