aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-03 10:51:12 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-03 10:51:12 +0100
commitcd191dbd618cfc9231fdf60a7feb9f68a9c68ab1 (patch)
treeadeabd2b3b520e9bfc8f09e508bd8b66704758a6
parenta74e66a68f3b4ed590f928b4fd4f0808c6287a32 (diff)
parent25cbccc6ebd36d7f06f4fa6ba15f1f6a421c18fe (diff)
downloadotp-cd191dbd618cfc9231fdf60a7feb9f68a9c68ab1.tar.gz
otp-cd191dbd618cfc9231fdf60a7feb9f68a9c68ab1.tar.bz2
otp-cd191dbd618cfc9231fdf60a7feb9f68a9c68ab1.zip
Merge branch 'egil/fix-compiler-error-msg'
* egil/fix-compiler-error-msg: compiler: Fix error message printout on compile error
-rw-r--r--lib/compiler/src/compile.erl2
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]).