aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 16:16:34 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:27:20 +0200
commita71c186fcc9e4592016c1b2c146db7b70ee0755a (patch)
tree4726e01fef4c2f432f4d1934ab5632e6f77e6422 /lib/compiler/src
parentf33f832d85584ffdbecf16bee8023e80c3af15ea (diff)
downloadotp-a71c186fcc9e4592016c1b2c146db7b70ee0755a.tar.gz
otp-a71c186fcc9e4592016c1b2c146db7b70ee0755a.tar.bz2
otp-a71c186fcc9e4592016c1b2c146db7b70ee0755a.zip
Move error formatting to erl_error.erl and delete lib.erl
Diffstat (limited to 'lib/compiler/src')
-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 c6a0056a70..a37b2064b2 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -295,7 +295,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, Stack, StackFun, FormatFun)];
+ erl_error:format_stacktrace(1, Stack, StackFun, FormatFun)];
format_error_reason(Reason) ->
io_lib:format("~tp", [Reason]).