aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/examples
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:32:38 +0100
committerHans Bolinder <[email protected]>2018-02-06 14:40:54 +0100
commit1e06450adbf6d1f69ce70e198aa4ad1715f811c0 (patch)
tree083d467b4c4adfa0d23cb8228e6e72e250f562ce /lib/wx/examples
parent2936190ade5105e8aa35592d9a8490a393c709c9 (diff)
downloadotp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.tar.gz
otp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.tar.bz2
otp-1e06450adbf6d1f69ce70e198aa4ad1715f811c0.zip
wx: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/wx/examples')
-rw-r--r--lib/wx/examples/demo/ex_aui.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/wx/examples/demo/ex_aui.erl b/lib/wx/examples/demo/ex_aui.erl
index d8fc0021f1..97805621ed 100644
--- a/lib/wx/examples/demo/ex_aui.erl
+++ b/lib/wx/examples/demo/ex_aui.erl
@@ -87,8 +87,7 @@ do_init(Config) ->
wxAuiManager:update(Manager),
process_flag(trap_exit, true),
{Panel, #state{parent=Panel, config=Config, aui=Manager}}
- catch Class:Reason ->
- ST = erlang:get_stacktrace(),
+ catch Class:Reason:ST ->
io:format("AUI Crashed ~p ~p~n",[Reason, ST]),
wxAuiManager:unInit(Manager),
wxAuiManager:destroy(Manager),