summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-22 19:23:15 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-22 19:24:10 -0600
commit6c0b3f87c0d79ef8b885c006ec1a32a4af84a5dd (patch)
tree357ec2d9a400e1b40a1eef5cba7eedc76e29d648
parentc50bbc88e5933d42008b73de1717acf27e57b704 (diff)
fix check for plugin being a provider
-rw-r--r--src/rebar_plugins.erl2
1 files changed, 1 insertions, 1 deletions
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]),