summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-04-17 07:34:54 -0600
committerDave Smith <dizzyd@dizzyd.com>2010-04-17 07:34:54 -0600
commit266d82f871de7d6fec3aa34909a6c5373f74e009 (patch)
treed35c43e46998742892a39dcba30ad9c099945909 /src
parent66906bc39ef17badf904fd81ddf17cee660a5604 (diff)
Add simple warning if no modules are interested in handling a command for a given directory
Diffstat (limited to 'src')
-rw-r--r--src/rebar_core.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index a6f2c68..0304201 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -264,6 +264,7 @@ process_dir(Dir, ParentConfig, Commands) ->
ok = file:set_cwd(Dir),
%% Finally, process the current working directory
+ ?DEBUG("Commands: ~p Modules: ~p\n", [Commands, Modules]),
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),
%% Once we're all done processing, reset the code path to whatever
@@ -306,6 +307,8 @@ apply_commands([], _Modules, _Config, _ModuleFile) ->
apply_commands([Command | Rest], Modules, Config, ModuleFile) ->
case select_modules(Modules, Command, []) of
[] ->
+ ?CONSOLE("WARNING: ~p command does not apply to directory ~s\n",
+ [Command, rebar_utils:get_cwd()]),
apply_commands(Rest, Modules, Config, ModuleFile);
TargetModules ->
%% Provide some info on where we are