|
@ -239,7 +239,7 @@ maybe_report(_) -> |
|
|
ok. |
|
|
ok. |
|
|
|
|
|
|
|
|
report(Messages) -> |
|
|
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) -> |
|
|
format_errors(Config, _MainSource, Extra, Errors) -> |
|
|
[begin |
|
|
[begin |
|
@ -250,13 +250,13 @@ format_errors(Config, _MainSource, 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]); |
|
|
format_error(AbsSource, Extra, {Mod, Desc}) -> |
|
|
format_error(AbsSource, Extra, {Mod, Desc}) -> |
|
|
ErrorDesc = Mod:format_error(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) -> |
|
|
maybe_absname(Config, Filename) -> |
|
|
case rebar_utils:processing_base_dir(Config) of |
|
|
case rebar_utils:processing_base_dir(Config) of |
|
|