diff options
author | Marcus Arendt <[email protected]> | 2014-10-27 09:36:21 +0100 |
---|---|---|
committer | Marcus Arendt <[email protected]> | 2014-10-27 09:36:21 +0100 |
commit | c7a6853b5c3bf4fae6c1670a47575171118abbc9 (patch) | |
tree | 409dc664ce4511008b382bc54511db958b59c341 /lib | |
parent | 12882d74654bda1f32d66e02e483eddc914a93f1 (diff) | |
parent | 24a899be30578f59cdd73a70bdb775c18e6b4bd7 (diff) | |
download | otp-c7a6853b5c3bf4fae6c1670a47575171118abbc9.tar.gz otp-c7a6853b5c3bf4fae6c1670a47575171118abbc9.tar.bz2 otp-c7a6853b5c3bf4fae6c1670a47575171118abbc9.zip |
Merge branch 'scrapinghub/update_session_original_stacktrace'
* scrapinghub/update_session_original_stacktrace:
inets: Return correct stacktrace on session updating failure
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inets/src/http_client/httpc_handler.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl index 0bbd40d656..0a42e7210c 100644 --- a/lib/inets/src/http_client/httpc_handler.erl +++ b/lib/inets/src/http_client/httpc_handler.erl @@ -1850,6 +1850,7 @@ update_session(ProfileName, #session{id = SessionId} = Session, Pos, Value) -> Session2 = erlang:setelement(Pos, Session, Value), insert_session(Session2, ProfileName); T:E -> + Stacktrace = erlang:get_stacktrace(), error_logger:error_msg("Failed updating session: " "~n ProfileName: ~p" "~n SessionId: ~p" @@ -1873,7 +1874,7 @@ update_session(ProfileName, #session{id = SessionId} = Session, Pos, Value) -> {value, Value}, {etype, T}, {error, E}, - {stacktrace, erlang:get_stacktrace()}]}) + {stacktrace, Stacktrace}]}) end. |