From e90219cb14f89704772321b548c1553a49da5163 Mon Sep 17 00:00:00 2001 From: James Fish Date: Sat, 22 Nov 2014 17:46:48 +0000 Subject: Fix printing of dialyzer warnings Fixes cases where dialyzer warning might include a `~` causing printing to console to fail with `badarg`. --- src/rebar_prv_dialyzer.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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}. -- cgit v1.1