diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:32:38 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-06 14:40:54 +0100 |
commit | 1e06450adbf6d1f69ce70e198aa4ad1715f811c0 (patch) | |
tree | 083d467b4c4adfa0d23cb8228e6e72e250f562ce /lib/wx/src/wxe_server.erl | |
parent | 2936190ade5105e8aa35592d9a8490a393c709c9 (diff) | |
download | otp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.tar.gz otp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.tar.bz2 otp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.zip |
wx: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/wx/src/wxe_server.erl')
-rw-r--r-- | lib/wx/src/wxe_server.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/wx/src/wxe_server.erl b/lib/wx/src/wxe_server.erl index 58fcaf8f23..d6d9dbd629 100644 --- a/lib/wx/src/wxe_server.erl +++ b/lib/wx/src/wxe_server.erl @@ -283,10 +283,10 @@ invoke_callback(Pid, Ev, Ref) -> Return -> exit({bad_return, Return}) end end - catch _:Reason -> + catch _:Reason:Stacktrace -> wxEvent:skip(Ref), ?log("Callback fun crashed with {'EXIT, ~p, ~p}~n", - [Reason, erlang:get_stacktrace()]) + [Reason, Stacktrace]) end, wxe_util:cast(?WXE_CB_RETURN, <<>>) end, @@ -299,9 +299,9 @@ invoke_callback_fun(Fun) -> Return = Fun(), true = is_binary(Return), Return - catch _:Reason -> + catch _:Reason:Stacktrace -> ?log("Callback fun crashed with {'EXIT, ~p, ~p}~n", - [Reason, erlang:get_stacktrace()]), + [Reason, Stacktrace]), <<>> end, wxe_util:cast(?WXE_CB_RETURN, Res). |