diff options
author | Eric B Merritt <[email protected]> | 2013-02-05 16:49:41 -0800 |
---|---|---|
committer | Eric B Merritt <[email protected]> | 2013-02-05 17:10:45 -0800 |
commit | 26851a2e1c59124dea325e9a38cda25da463839a (patch) | |
tree | d160929e396a69086de2b5ac9af1685c15270ffc /src/rcl_prv_config.erl | |
parent | 882d4fbfe65dfc812d3de9d55647f9fb468be4b4 (diff) | |
download | relx-26851a2e1c59124dea325e9a38cda25da463839a.tar.gz relx-26851a2e1c59124dea325e9a38cda25da463839a.tar.bz2 relx-26851a2e1c59124dea325e9a38cda25da463839a.zip |
fix config issues with undefined config
Diffstat (limited to 'src/rcl_prv_config.erl')
-rw-r--r-- | src/rcl_prv_config.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcl_prv_config.erl b/src/rcl_prv_config.erl index 5d51300..60655b1 100644 --- a/src/rcl_prv_config.erl +++ b/src/rcl_prv_config.erl @@ -46,9 +46,9 @@ init(State) -> -spec do(rcl_state:t()) ->{ok, rcl_state:t()} | relcool:error(). do(State) -> case rcl_state:config_file(State) of - [] -> + undefined -> search_for_dominating_config(State); - ConfigFile -> + ConfigFile when erlang:is_list(ConfigFile) -> load_config(ConfigFile, State) end. |