Browse Source

format error from provider init and print as warning

pull/2137/head
Tristan Sloughter 5 years ago
parent
commit
7a2911df03
No known key found for this signature in database GPG Key ID: AAB97DDECCEB8150
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/rebar_state.erl

+ 4
- 1
src/rebar_state.erl View File

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

Loading…
Cancel
Save