diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-02-28 14:58:59 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-02-28 14:58:59 +0100 |
commit | 25cbccc6ebd36d7f06f4fa6ba15f1f6a421c18fe (patch) | |
tree | ec6870db653e4a433a3e54bbb572e38077aaae60 /lib | |
parent | 2202a8880f5472ce4bf65afdb967c70a12f35703 (diff) | |
download | otp-25cbccc6ebd36d7f06f4fa6ba15f1f6a421c18fe.tar.gz otp-25cbccc6ebd36d7f06f4fa6ba15f1f6a421c18fe.tar.bz2 otp-25cbccc6ebd36d7f06f4fa6ba15f1f6a421c18fe.zip |
compiler: Fix error message printout on compile error
Use correct stack in printout.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/compile.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl index b88f9792a5..9030dd998b 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -246,7 +246,7 @@ format_error_reason({Reason, Stack}) when is_list(Stack) -> end, FormatFun = fun (Term, _) -> io_lib:format("~tp", [Term]) end, [io_lib:format("~tp", [Reason]),"\n\n", - lib:format_stacktrace(1, erlang:get_stacktrace(), StackFun, FormatFun)]; + lib:format_stacktrace(1, Stack, StackFun, FormatFun)]; format_error_reason(Reason) -> io_lib:format("~tp", [Reason]). |