aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-10-27 09:36:21 +0100
committerMarcus Arendt <[email protected]>2014-10-27 09:36:21 +0100
commitc7a6853b5c3bf4fae6c1670a47575171118abbc9 (patch)
tree409dc664ce4511008b382bc54511db958b59c341 /lib
parent12882d74654bda1f32d66e02e483eddc914a93f1 (diff)
parent24a899be30578f59cdd73a70bdb775c18e6b4bd7 (diff)
downloadotp-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.erl3
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.