diff options
author | Heinz N. Gies <heinz@licenser.net> | 2015-09-24 00:50:01 +0200 |
---|---|---|
committer | Heinz N. Gies <heinz@licenser.net> | 2015-09-29 08:06:44 +0200 |
commit | 02a7dc47726a4329c029e01a3d1538fc47814a8d (patch) | |
tree | 5a7d19f675f5a561e9271110bc49492dcf914cb7 | |
parent | 2ab43014e8855656ec19439a5f9ebcc5519c39f5 (diff) |
Add colour for 'the call comtains' message
-rw-r--r-- | src/rebar_dialyzer_format.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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)]); |