From f1ca7950c3a532721ca19679d272ae6c2170c05f Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 8 Nov 2014 11:16:42 -0600 Subject: fix warning/error compilation output --- src/rebar_base_compiler.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 01bb727..b42189b 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -239,7 +239,7 @@ maybe_report(_) -> ok. report(Messages) -> - lists:foreach(fun(Msg) -> io:format("~s", [Msg]) end, Messages). + lists:foreach(fun(Msg) -> io:format("~s~n", [Msg]) end, Messages). format_errors(Config, _MainSource, Extra, Errors) -> [begin @@ -250,13 +250,13 @@ format_errors(Config, _MainSource, 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]); format_error(AbsSource, Extra, {Mod, Desc}) -> ErrorDesc = Mod:format_error(Desc), - ?FMT("~s: ~s~s", [AbsSource, Extra, ErrorDesc]). + ?FMT("~s: ~s~s~n", [AbsSource, Extra, ErrorDesc]). maybe_absname(Config, Filename) -> case rebar_utils:processing_base_dir(Config) of -- cgit v1.1