diff options
author | Loïc Hoguin <[email protected]> | 2014-09-24 15:07:59 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-09-24 15:07:59 +0300 |
commit | fd37fad592fc96a384bcd060696194f5fe074f6f (patch) | |
tree | 015cee3eda637d194bcc654d96d813d4648fc02f /test | |
parent | c56bada509a448348ba724841a27abed201b4861 (diff) | |
download | cowboy-fd37fad592fc96a384bcd060696194f5fe074f6f.tar.gz cowboy-fd37fad592fc96a384bcd060696194f5fe074f6f.tar.bz2 cowboy-fd37fad592fc96a384bcd060696194f5fe074f6f.zip |
Small tweak from erlang:error/1 to error/1
Diffstat (limited to 'test')
-rw-r--r-- | test/http_SUITE_data/http_errors.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/http_SUITE_data/http_errors.erl b/test/http_SUITE_data/http_errors.erl index 57fd684..7c3872b 100644 --- a/test/http_SUITE_data/http_errors.erl +++ b/test/http_SUITE_data/http_errors.erl @@ -10,11 +10,11 @@ init({_Transport, http}, Req, _Opts) -> case_init(<<"init_before_reply">> = Case, _Req) -> cowboy_error_h:ignore(?MODULE, case_init, 2), - erlang:error(Case); + error(Case); case_init(<<"init_after_reply">> = Case, Req) -> cowboy_error_h:ignore(?MODULE, case_init, 2), _ = cowboy_req:reply(200, [], "http_handler_crashes", Req), - erlang:error(Case); + error(Case); case_init(<<"init_reply_handle_error">> = Case, Req) -> Req1 = cowboy_req:reply(200, [], "http_handler_crashes", Req), {ok, Req1, Case}; @@ -25,14 +25,14 @@ case_init(<<"handle_after_reply">> = Case, Req) -> handle(_Req, <<"init_reply_handle_error">> = Case) -> cowboy_error_h:ignore(?MODULE, handle, 2), - erlang:error(Case); + error(Case); handle(_Req, <<"handle_before_reply">> = Case) -> cowboy_error_h:ignore(?MODULE, handle, 2), - erlang:error(Case); + error(Case); handle(Req, <<"handle_after_reply">> = Case) -> cowboy_error_h:ignore(?MODULE, handle, 2), _ = cowboy_req:reply(200, [], "http_handler_crashes", Req), - erlang:error(Case). + error(Case). terminate(_, _, _) -> ok. |