From 538d8e7e04e43d19629c8b06f583175c1953630a Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 20 Jun 2015 12:32:06 -0500 Subject: add debug statement of failed hook to help plugin builders --- src/rebar_hooks.erl | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.1