diff options
author | Yurin Slava <YurinVV@ya.ru> | 2012-06-18 10:44:35 +0700 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-18 12:09:58 +0200 |
commit | 7bef45816309e7bd73719281e32afade77439cfb (patch) | |
tree | 321738ace6d6bf23dc7d3dcd936a98bea0ce57a2 /src | |
parent | 3dce05314bd0e65a3005eaf40eaa0c3d51d7c3ca (diff) |
Add support for errors without line number
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_base_compiler.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 3d4447f..7d1fb22 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -245,4 +245,7 @@ format_error(AbsSource, Extra, {{Line, Column}, Mod, Desc}) -> ?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~n", [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~n", [AbsSource, Extra, ErrorDesc]). |