summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2019-08-15 10:35:35 -0400
committerGitHub <noreply@github.com>2019-08-15 10:35:35 -0400
commit5bc4581d6c7336790ddb51e4dce63bc47f8d2754 (patch)
tree0d441345d04dce5237497d8c7fef3b0856cbaf67 /src
parentb1f8e3dfadb6aae8d1efcd8939ccb0c26cf03fab (diff)
parent7a2911df039d23cdaaa6350ea36bc7be097456cb (diff)
Merge pull request #2137 from tsloughter/provider-warning
format error from provider init and print as warning
Diffstat (limited to 'src')
-rw-r--r--src/rebar_state.erl5
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