diff options
author | Björn Gustavsson <[email protected]> | 2017-12-08 12:27:10 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-08 12:27:10 +0100 |
commit | a89f4e93052614cfb98c608f8c1bc093620ac1c9 (patch) | |
tree | 901278a224bda78dc9efa07344fb83b7536791d3 /lib/compiler/src/sys_core_fold.erl | |
parent | d61fc50c7cc42628e68cacec33c54fb141fb25c4 (diff) | |
download | otp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.tar.gz otp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.tar.bz2 otp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.zip |
Use the new syntax for retrieving stack traces
Diffstat (limited to 'lib/compiler/src/sys_core_fold.erl')
-rw-r--r-- | lib/compiler/src/sys_core_fold.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/sys_core_fold.erl b/lib/compiler/src/sys_core_fold.erl index f8a467d6a9..e28d48acf5 100644 --- a/lib/compiler/src/sys_core_fold.erl +++ b/lib/compiler/src/sys_core_fold.erl @@ -125,8 +125,7 @@ function_1({#c_var{name={F,Arity}}=Name,B0}) -> end, B0, 20), {Name,B} catch - Class:Error -> - Stack = erlang:get_stacktrace(), + Class:Error:Stack -> io:fwrite("Function: ~w/~w\n", [F,Arity]), erlang:raise(Class, Error, Stack) end. |