diff options
author | Ingela Anderton Andin <[email protected]> | 2013-09-24 16:31:06 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2014-02-05 10:32:24 +0100 |
commit | 1b065c9329a4497208299dbf214bba90269399ab (patch) | |
tree | aff1e1837c0f8791f5acf9cc4776943309909772 | |
parent | b68cc1bd8995e53cec04a37be23bd1709e57bff9 (diff) | |
download | otp-1b065c9329a4497208299dbf214bba90269399ab.tar.gz otp-1b065c9329a4497208299dbf214bba90269399ab.tar.bz2 otp-1b065c9329a4497208299dbf214bba90269399ab.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.erl | 11 |
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 b1bac55871..14b5c494e8 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. |