diff options
author | James Fish <james@fishcakez.com> | 2014-11-22 17:46:48 +0000 |
---|---|---|
committer | James Fish <james@fishcakez.com> | 2014-11-22 21:24:27 +0000 |
commit | e90219cb14f89704772321b548c1553a49da5163 (patch) | |
tree | ab23d36ca311c31401300df28a3903187843ea63 | |
parent | 0bcec763ba3865eccaf5e6f21598c1d1136d7386 (diff) |
Fix printing of dialyzer warnings
Fixes cases where dialyzer warning might include a `~` causing printing
to console to fail with `badarg`.
-rw-r--r-- | src/rebar_prv_dialyzer.erl | 2 |
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}. |