diff options
author | Tristan Sloughter <t@crashfast.com> | 2019-08-14 20:40:42 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2019-08-14 20:40:42 -0600 |
commit | 7a2911df039d23cdaaa6350ea36bc7be097456cb (patch) | |
tree | 0d441345d04dce5237497d8c7fef3b0856cbaf67 /src | |
parent | b1f8e3dfadb6aae8d1efcd8939ccb0c26cf03fab (diff) |
format error from provider init and print as warning
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_state.erl | 5 |
1 files changed, 4 insertions, 1 deletions
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 |