From 6c0b3f87c0d79ef8b885c006ec1a32a4af84a5dd Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 22 Nov 2014 19:23:15 -0600 Subject: fix check for plugin being a provider --- src/rebar_plugins.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_plugins.erl b/src/rebar_plugins.erl index 3b117e9..b7d81e2 100644 --- a/src/rebar_plugins.erl +++ b/src/rebar_plugins.erl @@ -55,7 +55,7 @@ validate_plugin(Plugin) -> Exports = sets:from_list(Plugin:module_info(exports)), Required = sets:from_list([{init,1}, {do,1}, - {format_error,2}]), + {format_error,1}]), case sets:is_subset(Required, Exports) of false -> ?WARN("Plugin ~p is not a provider. It will not be used.~n", [Plugin]), -- cgit v1.1