summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Fish <james@fishcakez.com>2014-11-22 17:46:48 +0000
committerJames Fish <james@fishcakez.com>2014-11-22 21:24:27 +0000
commite90219cb14f89704772321b548c1553a49da5163 (patch)
treeab23d36ca311c31401300df28a3903187843ea63 /src
parent0bcec763ba3865eccaf5e6f21598c1d1136d7386 (diff)
Fix printing of dialyzer warnings
Fixes cases where dialyzer warning might include a `~` causing printing to console to fail with `badarg`.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_dialyzer.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 0ede475..6bff26b 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -354,7 +354,7 @@ app_to_files(App) ->
run_dialyzer(State, Opts) ->
Warnings = rebar_state:get(State, dialyzer_warnings, default_warnings()),
Opts2 = [{warnings, Warnings} | Opts],
- _ = [?CONSOLE(format_warning(Warning), [])
+ _ = [?CONSOLE("~s", [format_warning(Warning)])
|| Warning <- dialyzer:run(Opts2)],
{ok, State}.