diff options
author | Heinz N. Gies <heinz@licenser.net> | 2015-09-22 19:33:12 +0200 |
---|---|---|
committer | Heinz N. Gies <heinz@licenser.net> | 2015-09-29 08:04:41 +0200 |
commit | 3bbebfe730c3a3765622740ac3b272c5872604f1 (patch) | |
tree | d72f6a0ac5ec1ad01bfd9501a621f09a24497516 | |
parent | c85edcdadbf4c3790bdf9dfc5982e54fab7b1fb3 (diff) |
Fix error messages that were not resetting color
-rw-r--r-- | src/rebar_dialyzer_format.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebar_dialyzer_format.erl b/src/rebar_dialyzer_format.erl index 12c789a..e2024eb 100644 --- a/src/rebar_dialyzer_format.erl +++ b/src/rebar_dialyzer_format.erl @@ -56,8 +56,7 @@ message_to_string({apply, [Args, ArgNs, FailReason, call_or_apply_to_string(ArgNs, FailReason, SigArgs, SigRet, Contract); message_to_string({app_call, [M, F, Args, Culprit, ExpectedType, FoundType]}) -> fmt("~!^The call~!! ~s:~s~s ~!^requires that" - "~!! ~s ~!^is of type ~!g~s~!^ not ~!r~s" - "~!!", + "~!! ~s ~!^is of type ~!g~s~!^ not ~!r~s", [M, F, Args, Culprit, ExpectedType, FoundType]); message_to_string({bin_construction, [Culprit, Size, Seg, Type]}) -> fmt("~!^Binary construction will fail since the ~!b~s~!^ field~!!" @@ -135,7 +134,7 @@ message_to_string({unmatched_return, [Type]}) -> fmt("~!^Expression produces a value of type ~!!~s~!^," " but this value is unmatched", [Type]); message_to_string({unused_fun, [F, A]}) -> - fmt("~!^Function ~!r~w/~w~!^ will never be called", [F, A]); + fmt("~!^Function ~!r~w/~w~!!~!^ will never be called", [F, A]); %%----- Warnings for specs and contracts ------------------- message_to_string({contract_diff, [M, F, _A, Contract, Sig]}) -> fmt("~!^Type specification ~!!~w:~w~s~!^" @@ -231,7 +230,7 @@ message_to_string({callback_missing, [B, F, A]}) -> fmt("~!^Undefined callback function ~!!~w/~w~!^ (behaviour ~!!" "'~w'~!^)",[F, A, B]); message_to_string({callback_info_missing, [B]}) -> - fmt("~!^Callback info about the ~!r~w~!^" + fmt("~!^Callback info about the ~!r~w~!!~!^" " behaviour is not available", [B]); %%----- Warnings for unknown functions, types, and behaviours ------------- message_to_string({unknown_type, {M, F, A}}) -> |