aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_bsm.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-12-08 12:27:10 +0100
committerBjörn Gustavsson <[email protected]>2017-12-08 12:27:10 +0100
commita89f4e93052614cfb98c608f8c1bc093620ac1c9 (patch)
tree901278a224bda78dc9efa07344fb83b7536791d3 /lib/compiler/src/beam_bsm.erl
parentd61fc50c7cc42628e68cacec33c54fb141fb25c4 (diff)
downloadotp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.tar.gz
otp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.tar.bz2
otp-a89f4e93052614cfb98c608f8c1bc093620ac1c9.zip
Use the new syntax for retrieving stack traces
Diffstat (limited to 'lib/compiler/src/beam_bsm.erl')
-rw-r--r--lib/compiler/src/beam_bsm.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_bsm.erl b/lib/compiler/src/beam_bsm.erl
index 9a4e7fb133..9ea5a3eb92 100644
--- a/lib/compiler/src/beam_bsm.erl
+++ b/lib/compiler/src/beam_bsm.erl
@@ -105,8 +105,7 @@ function({function,Name,Arity,Entry,Is}, FIndex) ->
D = #btb{f=FIndex,index=Index},
{function,Name,Arity,Entry,btb_opt_1(Is, D, [])}
catch
- Class:Error ->
- Stack = erlang:get_stacktrace(),
+ Class:Error:Stack ->
io:fwrite("Function: ~w/~w\n", [Name,Arity]),
erlang:raise(Class, Error, Stack)
end.