diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-06-19 16:43:19 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-06-19 16:43:19 -0400 |
commit | 8bd24214cbcc7d68514bee43d736837e2de84808 (patch) | |
tree | fc440acd698758cb0f1b05347bb4a2d79b097af5 /src/rebar_core.erl | |
parent | 70dbbf95c24c054514e0ef2ba28c765d33bbf5d7 (diff) | |
parent | 4bb2a0c71006784442f285bbfac7559e4be51f67 (diff) |
Merge pull request #522 from tsloughter/hooks_error
Add error message for bad provider hook, fixes #521
Diffstat (limited to 'src/rebar_core.erl')
-rw-r--r-- | src/rebar_core.erl | 4 |
1 files changed, 3 insertions, 1 deletions
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}}) -> |