diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-12 15:02:22 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-12 15:13:20 +0200 |
commit | 8e66225e061572cc405398deb04b8573749fc804 (patch) | |
tree | d8ad98f77cd44bbfaab94b6c4c72ed7f7a98ed42 | |
parent | 7e812e6a75e837ebbf468526ebf22c97f68df30a (diff) |
Fix error/warning newlines (Reported-by: Tim Watson)
-rw-r--r-- | src/rebar_base_compiler.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 6167e0e..3e2997f 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -233,7 +233,7 @@ maybe_report(_) -> ok. report(Messages) -> - lists:foreach(fun(Msg) -> io:format("~s~n", [Msg]) end, Messages). + lists:foreach(fun(Msg) -> io:format("~s", [Msg]) end, Messages). format_errors(Source, Extra, Errors) -> AbsSource = filename:absname(Source), @@ -242,7 +242,7 @@ format_errors(Source, Extra, Errors) -> format_error(AbsSource, Extra, {{Line, Column}, Mod, Desc}) -> ErrorDesc = Mod:format_error(Desc), - ?FMT("~s:~w:~w: ~s~s", [AbsSource, Line, Column, Extra, ErrorDesc]); + ?FMT("~s:~w:~w: ~s~s~n", [AbsSource, Line, Column, Extra, ErrorDesc]); format_error(AbsSource, Extra, {Line, Mod, Desc}) -> ErrorDesc = Mod:format_error(Desc), - ?FMT("~s:~w: ~s~s", [AbsSource, Line, Extra, ErrorDesc]). + ?FMT("~s:~w: ~s~s~n", [AbsSource, Line, Extra, ErrorDesc]). |