summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-09-22 11:50:56 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-09-22 11:50:56 -0400
commit9c5d4bfac5d3e24f38ec5f54b7517c52b053c349 (patch)
tree6b1c728dccf47876858c19fdfb1b3381abf7ed6e /src
parentfa33d65c93c515fbb2b57ba3d4c2879d94dfaaf3 (diff)
parent8959ffa1518e6d74ad9ae26bd92bf614d9ae7aa4 (diff)
Merge pull request #827 from project-fifo/nice-dialyzer
Write original messages not fancy ones to disk
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_dialyzer.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 035155b..7cf7e28 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -404,7 +404,7 @@ run_dialyzer(State, Opts, Output) ->
format_warnings(Output, Warnings) ->
Warnings1 = format_warnings(Warnings),
console_warnings(Warnings1),
- file_warnings(Output, Warnings1),
+ file_warnings(Output, Warnings),
length(Warnings1).
format_warnings(Warnings) ->
@@ -418,7 +418,7 @@ console_warnings(Warnings) ->
file_warnings(_, []) ->
ok;
file_warnings(Output, Warnings) ->
- Warnings1 = [[Warning, $\n] || Warning <- Warnings],
+ Warnings1 = [[dialyzer:format_warning(Warning, fullpath), $\n] || Warning <- Warnings],
case file:write_file(Output, Warnings1, [append]) of
ok ->
ok;