diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-08-07 19:39:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 19:39:44 -0400 |
commit | c4b34e1abcab8fa8f328a997182bfe5f8ffe1242 (patch) | |
tree | d9a4289ccf8f9dabb75b6c590a5686f0b4ebe4d7 /src/rebar_prv_plugins.erl | |
parent | 00e7ee4cb16da76928dd25a89370feeb2311a001 (diff) | |
parent | 963c49f5eb9ab5b34e1843fb43305743720917ac (diff) |
Merge pull request #1598 from ferd/unicode-bonanza
Unicode support in all the places
Diffstat (limited to 'src/rebar_prv_plugins.erl')
-rw-r--r-- | src/rebar_prv_plugins.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rebar_prv_plugins.erl b/src/rebar_prv_plugins.erl index c76dae1..4bea3b3 100644 --- a/src/rebar_prv_plugins.erl +++ b/src/rebar_prv_plugins.erl @@ -55,19 +55,19 @@ format_error(Reason) -> display_plugins(_Header, _Apps, []) -> ok; display_plugins(Header, Apps, Plugins) -> - ?CONSOLE("--- ~s ---", [Header]), + ?CONSOLE("--- ~ts ---", [Header]), display_plugins(Apps, Plugins), ?CONSOLE("", []). display_plugins(Apps, Plugins) -> lists:foreach(fun(Plugin) -> - Name = if is_atom(Plugin) -> ec_cnv:to_binary(Plugin); - is_tuple(Plugin) -> ec_cnv:to_binary(element(1, Plugin)) + Name = if is_atom(Plugin) -> atom_to_binary(Plugin, unicode); + is_tuple(Plugin) -> rebar_utils:to_binary(element(1, Plugin)) end, case rebar_app_utils:find(Name, Apps) of {ok, _App} -> - ?CONSOLE("~s", [Name]); + ?CONSOLE("~ts", [Name]); error -> - ?DEBUG("Unable to find plugin ~s", [Name]) + ?DEBUG("Unable to find plugin ~ts", [Name]) end end, Plugins). |