summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-06-20 12:32:06 -0500
committerTristan Sloughter <t@crashfast.com>2015-06-20 12:32:09 -0500
commit538d8e7e04e43d19629c8b06f583175c1953630a (patch)
treeecf9a59fb4359719fe70412fc85f187b2d4e013d /src
parent312b55700597525a28d8279c7554a27933d117d2 (diff)
add debug statement of failed hook to help plugin builders
Diffstat (limited to 'src')
-rw-r--r--src/rebar_hooks.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl
index ebc4d2d..734c15b 100644
--- a/src/rebar_hooks.erl
+++ b/src/rebar_hooks.erl
@@ -3,6 +3,7 @@
-export([run_all_hooks/5
,format_error/1]).
+-include("rebar.hrl").
-include_lib("providers/include/providers.hrl").
-spec run_all_hooks(file:filename_all(), pre | post,
@@ -23,6 +24,7 @@ run_provider_hooks(Dir, Type, Command, Providers, State) ->
case rebar_core:do(HookProviders, State1) of
{error, ProviderName} ->
+ ?DEBUG(format_error({bad_provider, Type, Command, ProviderName}), []),
throw(?PRV_ERROR({bad_provider, Type, Command, ProviderName}));
{ok, _} ->
rebar_utils:remove_from_code_path(PluginDepsPaths)