aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_record.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compiler/src/beam_record.erl')
-rw-r--r--lib/compiler/src/beam_record.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_record.erl b/lib/compiler/src/beam_record.erl
index 419089b1bc..e4775ca6a4 100644
--- a/lib/compiler/src/beam_record.erl
+++ b/lib/compiler/src/beam_record.erl
@@ -56,8 +56,7 @@ function({function,Name,Arity,CLabel,Is}) ->
Idx = beam_utils:index_labels(Is),
{function,Name,Arity,CLabel,rewrite(Is,Idx)}
catch
- Class:Error ->
- Stack = erlang:get_stacktrace(),
+ Class:Error:Stack ->
io:fwrite("Function: ~w/~w\n", [Name,Arity]),
erlang:raise(Class, Error, Stack)
end.