@@ -68,7 +68,7 @@ process_namespace(State, Command) ->
68
68
not_found ->
69
69
case providers :get_providers_by_namespace (Command , Providers ) of
70
70
[] ->
71
- {error , io_lib :format (" Command ~p not found" , [Command ])};
71
+ {error , io_lib :format (" Command ~t s not found" , [atom_to_list ( Command ) ])};
72
72
_ ->
73
73
% % Replay 'do' as a command of that namespace
74
74
{ok , rebar_state :namespace (State , Command ), do }
@@ -98,10 +98,10 @@ process_command(State, Command) ->
98
98
not_found when Command =/= do ->
99
99
case Namespace of
100
100
default ->
101
- {error , io_lib :format (" Command ~p not found" , [Command ])};
101
+ {error , io_lib :format (" Command ~t s not found" , [atom_to_list ( Command ) ])};
102
102
_ ->
103
- {error , io_lib :format (" Command ~p not found in namespace ~p " ,
104
- [Command , Namespace ])}
103
+ {error , io_lib :format (" Command ~t s not found in namespace ~t s " ,
104
+ [atom_to_list ( Command ), atom_to_list ( Namespace ) ])}
105
105
end ;
106
106
not_found when Command =:= do , Namespace =/= default ->
107
107
do ([{default , do } | TargetProviders ], State );
@@ -120,7 +120,7 @@ process_command(State, Command) ->
120
120
State2 = rebar_state :command_parsed_args (State1 , Args ),
121
121
do (TargetProviders , State2 );
122
122
{error , {invalid_option , Option }} ->
123
- {error , io_lib :format (" Invalid option ~t s on task ~p " , [Option , Command ])};
123
+ {error , io_lib :format (" Invalid option ~t s on task ~t s " , [Option , atom_to_list ( Command ) ])};
124
124
{error , {invalid_option_arg , {Option , Arg }}} ->
125
125
{error , io_lib :format (" Invalid argument ~t s to option ~t s" , [Arg , Option ])};
126
126
{error , {missing_option_arg , Option }} ->
@@ -137,7 +137,7 @@ process_command(State, Command) ->
137
137
do ([], State ) ->
138
138
{ok , State };
139
139
do ([ProviderName | Rest ], State ) ->
140
- ? DEBUG (" Running provider: ~p " , [friendly_provider (ProviderName )]),
140
+ ? DEBUG (" Running provider: ~t p " , [friendly_provider (ProviderName )]),
141
141
% % Special providers like 'as', 'do' or some hooks may be passed
142
142
% % as a tuple {Namespace, Name}, otherwise not. Handle them
143
143
% % on a per-need basis.
0 commit comments