diff options
author | Björn Gustavsson <[email protected]> | 2017-12-13 12:58:33 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-13 12:58:33 +0100 |
commit | a10b5b84d5315658357ed6dc6a8785d7ae1c5610 (patch) | |
tree | cc025b985e863f74b67f9ede6ea5e59eda4cd9c7 /lib/compiler/src/beam_block.erl | |
parent | de17c1f86974de21f0a3b1ba53c2d2b7774740de (diff) | |
parent | a89f4e93052614cfb98c608f8c1bc093620ac1c9 (diff) | |
download | otp-a10b5b84d5315658357ed6dc6a8785d7ae1c5610.tar.gz otp-a10b5b84d5315658357ed6dc6a8785d7ae1c5610.tar.bz2 otp-a10b5b84d5315658357ed6dc6a8785d7ae1c5610.zip |
Merge branch 'bjorn/compiler/use-stacktrace-syntax'
* bjorn/compiler/use-stacktrace-syntax:
Use the new syntax for retrieving stack traces
Diffstat (limited to 'lib/compiler/src/beam_block.erl')
-rw-r--r-- | lib/compiler/src/beam_block.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_block.erl b/lib/compiler/src/beam_block.erl index c640af224d..79c4b651db 100644 --- a/lib/compiler/src/beam_block.erl +++ b/lib/compiler/src/beam_block.erl @@ -45,8 +45,7 @@ function({function,Name,Arity,CLabel,Is0}) -> %% Done. {function,Name,Arity,CLabel,Is6} catch - Class:Error -> - Stack = erlang:get_stacktrace(), + Class:Error:Stack -> io:fwrite("Function: ~w/~w\n", [Name,Arity]), erlang:raise(Class, Error, Stack) end. |