aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inets')
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index ca29523f84..945b1b94b6 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -253,8 +253,7 @@ handle_call(Request, From, State) ->
Result ->
Result
catch
- Class:Reason ->
- ST = erlang:get_stacktrace(),
+ Class:Reason:ST ->
{stop, {shutdown, {{Class, Reason}, ST}}, State}
end.
@@ -270,8 +269,7 @@ handle_cast(Msg, State) ->
Result ->
Result
catch
- Class:Reason ->
- ST = erlang:get_stacktrace(),
+ Class:Reason:ST ->
{stop, {shutdown, {{Class, Reason}, ST}}, State}
end.
@@ -286,8 +284,7 @@ handle_info(Info, State) ->
Result ->
Result
catch
- Class:Reason ->
- ST = erlang:get_stacktrace(),
+ Class:Reason:ST ->
{stop, {shutdown, {{Class, Reason}, ST}}, State}
end.
@@ -572,8 +569,7 @@ do_handle_info({Proto, _Socket, Data},
activate_once(Session),
{noreply, State#state{mfa = NewMFA}}
catch
- Class:Reason ->
- ST = erlang:get_stacktrace(),
+ Class:Reason:ST ->
ClientReason = {could_not_parse_as_http, Data},
ClientErrMsg = httpc_response:error(Request, ClientReason),
NewState = answer_request(Request, ClientErrMsg, State),