summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-06-14 17:30:15 -0500
committerTristan Sloughter <t@crashfast.com>2015-06-18 18:16:44 -0500
commitcd8c03e1c481b0ac7a6372d586411bcf9dd6a354 (patch)
treeb3fe314a52d1568a45e8014c72614f5e6b563acd /src/rebar3.erl
parent544cf2ced3db9b179e9adeade76d0345611ba703 (diff)
check format of config file and print the bad section in the error
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 4e90d82..e324687 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -120,8 +120,7 @@ init_config() ->
ConfigFile ->
rebar_config:consult_file(ConfigFile)
end,
-
- Config1 = rebar_config:merge_locks(Config, rebar_config:consult_file(?LOCK_FILE)),
+ Config1 = rebar_config:merge_locks(Config, rebar_config:consult_lock_file(?LOCK_FILE)),
%% If $HOME/.config/rebar3/config exists load and use as global config
GlobalConfigFile = rebar_dir:global_config(),
@@ -129,7 +128,8 @@ init_config() ->
true ->
?DEBUG("Load global config file ~p",
[GlobalConfigFile]),
- GlobalConfig = rebar_state:new(rebar_config:consult_file(GlobalConfigFile)),
+ GlobalConfigTerms = rebar_config:consult_file(GlobalConfigFile),
+ GlobalConfig = rebar_state:new(GlobalConfigTerms),
%% We don't want to worry about global plugin install state effecting later
%% usage. So we throw away the global profile state used for plugin install.