Fix missing plugin warnings

This patch fixes the warning logging when the number of missing plugins
is greater than one. The current code only works by accident, when a
single plugin is all that is missing.
This commit is contained in:
Tim Watson 2011-09-20 11:57:56 +01:00 committed by Tuncer Ayaz
parent fa1bbc6702
commit 36a40d3351

View file

@ -392,7 +392,7 @@ plugin_modules(Config, FoundModules, MissingModules) ->
case NotLoaded =/= [] of case NotLoaded =/= [] of
true -> true ->
%% NB: we continue to ignore this situation, as did the original code %% NB: we continue to ignore this situation, as did the original code
?WARN("Missing plugins: ~p\n", NotLoaded); ?WARN("Missing plugins: ~p\n", [NotLoaded]);
false -> false ->
?DEBUG("Loaded plugins: ~p~n", [AllViablePlugins]), ?DEBUG("Loaded plugins: ~p~n", [AllViablePlugins]),
ok ok