diff options
author | Richard Carlsson <[email protected]> | 2018-04-17 16:16:34 +0200 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2018-05-04 10:27:20 +0200 |
commit | a71c186fcc9e4592016c1b2c146db7b70ee0755a (patch) | |
tree | 4726e01fef4c2f432f4d1934ab5632e6f77e6422 /lib/stdlib/src/shell.erl | |
parent | f33f832d85584ffdbecf16bee8023e80c3af15ea (diff) | |
download | otp-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/stdlib/src/shell.erl')
-rw-r--r-- | lib/stdlib/src/shell.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl index bbae8b1a9f..c73cf22943 100644 --- a/lib/stdlib/src/shell.erl +++ b/lib/stdlib/src/shell.erl @@ -589,7 +589,7 @@ report_exception(Class, Severity, {Reason,Stacktrace}, RT) -> PF = fun(Term, I1) -> pp(Term, I1, RT) end, SF = fun(M, _F, _A) -> (M =:= erl_eval) or (M =:= ?MODULE) end, Enc = encoding(), - Str = lib:format_exception(I, Class, Reason, Stacktrace, SF, PF, Enc), + Str = erl_error:format_exception(I, Class, Reason, Stacktrace, SF, PF, Enc), io:requests([{put_chars, latin1, Tag}, {put_chars, unicode, Str}, nl]). |