diff options
author | Anthony Ramine <[email protected]> | 2012-06-03 10:42:45 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2012-06-03 10:45:51 +0200 |
commit | 5af6bd403862b10693035bebfd88d326541ca4bb (patch) | |
tree | b71618ba730d8a14432f646c9b172eeac064733b /lib | |
parent | f6dc9c00459cba32e06d5eb7a0b9f2c6785a4e4d (diff) | |
download | otp-5af6bd403862b10693035bebfd88d326541ca4bb.tar.gz otp-5af6bd403862b10693035bebfd88d326541ca4bb.tar.bz2 otp-5af6bd403862b10693035bebfd88d326541ca4bb.zip |
Fix printing of errors with column numbers
There was a colon missing after the column number, it must be an error
as it's not missing in list_errors/2.
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 c443f9f788..31c8f6c280 100644 --- a/lib/compiler/src/compile.erl +++ b/lib/compiler/src/compile.erl @@ -1420,7 +1420,7 @@ report_warnings(#compile{options=Opts,warnings=Ws0}) -> end. format_message(F, P, [{{Line,Column}=Loc,Mod,E}|Es]) -> - M = {{F,Loc},io_lib:format("~s:~w:~w ~s~s\n", + M = {{F,Loc},io_lib:format("~s:~w:~w: ~s~s\n", [F,Line,Column,P,Mod:format_error(E)])}, [M|format_message(F, P, Es)]; format_message(F, P, [{Line,Mod,E}|Es]) -> |