From 4bb2a0c71006784442f285bbfac7559e4be51f67 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Thu, 18 Jun 2015 18:35:42 -0500 Subject: Add error message for bad provider hook, fixes #521 --- src/rebar_core.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rebar_core.erl') diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 7439cff..b1647f0 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -130,7 +130,9 @@ do([ProviderName | Rest], State) -> error:undef -> %% This should really only happen if a plugin provider doesn't export do/1 ?DEBUG("Undefined call to provider's do function:~n~p", [erlang:get_stacktrace()]), - ?PRV_ERROR({bad_provider_namespace, ProviderName}) + ?PRV_ERROR({bad_provider_namespace, ProviderName}); + error:{badrecord,provider} -> + {error, ProviderName} end. format_error({bad_provider_namespace, {Namespace, Name}}) -> -- cgit v1.1