diff options
author | Micael Karlberg <[email protected]> | 2012-07-11 11:19:45 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2012-07-11 11:19:45 +0200 |
commit | d020e23b70ac9b850488cf4f0791b435876ba365 (patch) | |
tree | 55b871d2c97eb691c605a6b6d7018e96f1b1480a /lib/inets/src/http_client/httpc_handler.erl | |
parent | 03dd7037e055e0879d4e8565518d61bd5f1870f7 (diff) | |
parent | 76ffc030fc320d436b0a540a20783d5d317ae761 (diff) | |
download | otp-d020e23b70ac9b850488cf4f0791b435876ba365.tar.gz otp-d020e23b70ac9b850488cf4f0791b435876ba365.tar.bz2 otp-d020e23b70ac9b850488cf4f0791b435876ba365.zip |
Merge branch 'bmk/inets/httpc/error_during_session_update/OTP-10093' into bmk/inets/inets591_integration
Diffstat (limited to 'lib/inets/src/http_client/httpc_handler.erl')
-rw-r--r-- | lib/inets/src/http_client/httpc_handler.erl | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl index b8c34bd99b..6fe05dec80 100644 --- a/lib/inets/src/http_client/httpc_handler.erl +++ b/lib/inets/src/http_client/httpc_handler.erl @@ -1713,7 +1713,32 @@ update_session(ProfileName, #session{id = SessionId} = Session, Pos, Value) -> catch error:undef -> % This could happen during code upgrade Session2 = erlang:setelement(Pos, Session, Value), - insert_session(Session2, ProfileName) + insert_session(Session2, ProfileName); + T:E -> + error_logger:error_msg("Failed updating session: " + "~n ProfileName: ~p" + "~n SessionId: ~p" + "~n Pos: ~p" + "~n Value: ~p" + "~nwhen" + "~n Session (db) info: ~p" + "~n Session (db): ~p" + "~n Session (record): ~p" + "~n T: ~p" + "~n E: ~p", + [ProfileName, SessionId, Pos, Value, + (catch httpc_manager:which_session_info(ProfileName)), + Session, + (catch httpc_manager:lookup_session(ProfileName, SessionId)), + T, E]), + exit({failed_updating_session, + [{profile, ProfileName}, + {session_id, SessionId}, + {pos, Pos}, + {value, Value}, + {etype, T}, + {error, E}, + {stacktrace, erlang:get_stacktrace()}]}) end. |