diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:33:32 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-06 14:40:53 +0100 |
commit | 4e3405a381e023aca9b194e929868bea8ba112d2 (patch) | |
tree | 624a5222f1ef5deb6f21cab920dcbfdaf7f9569c /lib/observer/src/observer_perf_wx.erl | |
parent | c53939321c81330d802b7426592a12748fb9429d (diff) | |
download | otp-4e3405a381e023aca9b194e929868bea8ba112d2.tar.gz otp-4e3405a381e023aca9b194e929868bea8ba112d2.tar.bz2 otp-4e3405a381e023aca9b194e929868bea8ba112d2.zip |
observer: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/observer/src/observer_perf_wx.erl')
-rw-r--r-- | lib/observer/src/observer_perf_wx.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/src/observer_perf_wx.erl b/lib/observer/src/observer_perf_wx.erl index 5adfadb16e..eddb9327f3 100644 --- a/lib/observer/src/observer_perf_wx.erl +++ b/lib/observer/src/observer_perf_wx.erl @@ -86,8 +86,8 @@ init([Notebook, Parent, Config]) -> secs=maps:get(secs, Config, ?DISP_SECONDS)} }, {Panel, State0} - catch _:Err -> - io:format("~p crashed ~tp: ~tp~n",[?MODULE, Err, erlang:get_stacktrace()]), + catch _:Err:Stacktrace -> + io:format("~p crashed ~tp: ~tp~n",[?MODULE, Err, Stacktrace]), {stop, Err} end. |