aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_validator.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-12-13 12:58:33 +0100
committerBjörn Gustavsson <[email protected]>2017-12-13 12:58:33 +0100
commita10b5b84d5315658357ed6dc6a8785d7ae1c5610 (patch)
treecc025b985e863f74b67f9ede6ea5e59eda4cd9c7 /lib/compiler/src/beam_validator.erl
parentde17c1f86974de21f0a3b1ba53c2d2b7774740de (diff)
parenta89f4e93052614cfb98c608f8c1bc093620ac1c9 (diff)
downloadotp-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_validator.erl')
-rw-r--r--lib/compiler/src/beam_validator.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl
index 77f9fcebad..2ad9747940 100644
--- a/lib/compiler/src/beam_validator.erl
+++ b/lib/compiler/src/beam_validator.erl
@@ -130,9 +130,8 @@ validate_0(Module, [{function,Name,Ar,Entry,Code}|Fs], Ft) ->
throw:Error ->
%% Controlled error.
[Error|validate_0(Module, Fs, Ft)];
- Class:Error ->
+ Class:Error:Stack ->
%% Crash.
- Stack = erlang:get_stacktrace(),
io:fwrite("Function: ~w/~w\n", [Name,Ar]),
erlang:raise(Class, Error, Stack)
end.