diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:33:21 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-05 14:45:37 +0100 |
commit | 798f2151429ef7ea05d858e5ba9efc6d5cc3e10a (patch) | |
tree | 181f2eac563fc62baa80f3a5a3c8caa443721073 /lib/kernel/test/file_SUITE.erl | |
parent | b2e979e1b0cc376e7408cbdd480eb140b533f75a (diff) | |
download | otp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.tar.gz otp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.tar.bz2 otp-798f2151429ef7ea05d858e5ba9efc6d5cc3e10a.zip |
kernel: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/kernel/test/file_SUITE.erl')
-rw-r--r-- | lib/kernel/test/file_SUITE.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index 0cb8087a76..9a77454432 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -399,11 +399,11 @@ read_write_0(Str, {Func, ReadFun}, Options) -> io:format("~p:~p: ~p ERROR: ~ts vs~n ~w~n - ~p~n", [?MODULE, Line, Func, Str, ReadBytes, Options]), exit({error, ?LINE}); - error:What -> + error:What:Stacktrace -> io:format("~p:??: ~p ERROR: ~p from~n ~w~n ~p~n", [?MODULE, Func, What, Str, Options]), - io:format("\t~p~n", [erlang:get_stacktrace()]), + io:format("\t~p~n", [Stacktrace]), exit({error, ?LINE}) end. |