Browse Source

add debug statement of failed hook to help plugin builders

pull/530/head
Tristan Sloughter 10 years ago
parent
commit
538d8e7e04
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/rebar_hooks.erl

+ 2
- 0
src/rebar_hooks.erl View File

@ -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)

Loading…
Cancel
Save