summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_dialyzer.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 7bbaf81..f5d840d 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -211,7 +211,15 @@ run_dialyzer(State, Opts) ->
{ok, State}.
format_warning(Warning) ->
- string:strip(dialyzer:format_warning(Warning), right, $\n).
+ string:strip(dialyzer_format_warning(Warning), right, $\n).
+
+dialyzer_format_warning(Warning) ->
+ case dialyzer:format_warning(Warning) of
+ ":0: " ++ Warning2 ->
+ Warning2;
+ Warning2 ->
+ Warning2
+ end.
default_warnings() ->
[error_handling,