From 02a7dc47726a4329c029e01a3d1538fc47814a8d Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Thu, 24 Sep 2015 00:50:01 +0200 Subject: Add colour for 'the call comtains' message --- src/rebar_dialyzer_format.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_dialyzer_format.erl b/src/rebar_dialyzer_format.erl index e2024eb..056cbd1 100644 --- a/src/rebar_dialyzer_format.erl +++ b/src/rebar_dialyzer_format.erl @@ -169,7 +169,7 @@ message_to_string({spec_missing_fun, [M, F, A]}) -> %%----- Warnings for opaque type violations ------------------- message_to_string({call_with_opaque, [M, F, Args, ArgNs, ExpArgs]}) -> fmt("~!^The call ~!!~w:~w~s~!^ contains ~!!~s~!^ when ~!!~s", - [M, F, Args, form_positions(ArgNs), form_expected(ExpArgs)]); + [M, F, bad_arg(ArgNs, Args), form_positions(ArgNs), form_expected(ExpArgs)]); message_to_string({call_without_opaque, [M, F, Args, [{N,_,_}|_] = ExpectedTriples]}) -> fmt("~!^The call ~!!~w:~w~s ~!^does not have~!! ~s", [M, F, bad_arg(N, Args), form_expected_without_opaque(ExpectedTriples)]); -- cgit v1.1