mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix error/warning newlines (Reported-by: Tim Watson)
This commit is contained in:
parent
7e812e6a75
commit
8e66225e06
1 changed files with 3 additions and 3 deletions
|
@ -233,7 +233,7 @@ maybe_report(_) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
report(Messages) ->
|
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) ->
|
format_errors(Source, Extra, Errors) ->
|
||||||
AbsSource = filename:absname(Source),
|
AbsSource = filename:absname(Source),
|
||||||
|
@ -242,7 +242,7 @@ format_errors(Source, Extra, Errors) ->
|
||||||
|
|
||||||
format_error(AbsSource, Extra, {{Line, Column}, Mod, Desc}) ->
|
format_error(AbsSource, Extra, {{Line, Column}, Mod, Desc}) ->
|
||||||
ErrorDesc = Mod:format_error(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}) ->
|
format_error(AbsSource, Extra, {Line, Mod, Desc}) ->
|
||||||
ErrorDesc = Mod:format_error(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]).
|
||||||
|
|
Loading…
Reference in a new issue