aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-09-24 16:31:06 +0200
committerIngela Anderton Andin <[email protected]>2013-09-24 16:31:06 +0200
commitcee5e8344470904f98579fae7046f49d65dbcb33 (patch)
treeaa2202c17174929983ec30ea1338bf54ead55fe7
parent7d8397a7c9abdee42a1da57ba6b1bbc4b9f6a5c3 (diff)
downloadotp-cee5e8344470904f98579fae7046f49d65dbcb33.tar.gz
otp-cee5e8344470904f98579fae7046f49d65dbcb33.tar.bz2
otp-cee5e8344470904f98579fae7046f49d65dbcb33.zip
inets: httpc - Remove dead error handling code
Some error handling is only relevant for functions that end up in gen_server:call and not in gen_server:cast.
-rw-r--r--lib/inets/src/http_client/httpc.erl11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 151539f52f..da9bbdd1ec 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -233,14 +233,7 @@ set_options(Options, Profile) when is_atom(Profile) orelse is_pid(Profile) ->
?hcrt("set options", [{options, Options}, {profile, Profile}]),
case validate_options(Options) of
{ok, Opts} ->
- try
- begin
- httpc_manager:set_options(Opts, profile_name(Profile))
- end
- catch
- exit:{noproc, _} ->
- {error, inets_not_started}
- end;
+ httpc_manager:set_options(Opts, profile_name(Profile));
{error, Reason} ->
{error, Reason}
end.
@@ -335,8 +328,6 @@ store_cookies(SetCookieHeaders, Url, Profile)
ok
end
catch
- exit:{noproc, _} ->
- {error, {not_started, Profile}};
error:{badmatch, Bad} ->
{error, {parse_failed, Bad}}
end.