From 8e66225e061572cc405398deb04b8573749fc804 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 12 Jun 2012 15:02:22 +0200 Subject: [PATCH] Fix error/warning newlines (Reported-by: Tim Watson) --- src/rebar_base_compiler.erl | 6 +++--- 1 file 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]).