From 7a2911df039d23cdaaa6350ea36bc7be097456cb Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 14 Aug 2019 20:40:42 -0600 Subject: format error from provider init and print as warning --- src/rebar_state.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rebar_state.erl b/src/rebar_state.erl index e7d772f..2c1100e 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -489,8 +489,11 @@ create_logic_providers(ProviderModules, State0) -> try lists:foldl(fun(ProviderMod, StateAcc) -> case providers:new(ProviderMod, StateAcc) of + {error, {Mod, Error}} -> + ?WARN("~ts", [Mod:format_error(Error)]), + StateAcc; {error, Reason} -> - ?ERROR(Reason++"~n", []), + ?WARN(Reason++"~n", []), StateAcc; {ok, StateAcc1} -> StateAcc1 -- cgit v1.1