aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcl_prv_config.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-02-09 11:06:02 -0800
committerEric B Merritt <[email protected]>2013-04-03 18:39:00 -0700
commite8c4493943d0eed22f72074516cbe185c6069f80 (patch)
tree32c272749b9ca948c272a7fdd58791cd97fd2cb6 /src/rcl_prv_config.erl
parentb7d37501383072a7795298979b097a7066a48224 (diff)
downloadrelx-e8c4493943d0eed22f72074516cbe185c6069f80.tar.gz
relx-e8c4493943d0eed22f72074516cbe185c6069f80.tar.bz2
relx-e8c4493943d0eed22f72074516cbe185c6069f80.zip
bugfix for empty configs in the Erlang API
Diffstat (limited to 'src/rcl_prv_config.erl')
-rw-r--r--src/rcl_prv_config.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rcl_prv_config.erl b/src/rcl_prv_config.erl
index 1027edf..4d1c119 100644
--- a/src/rcl_prv_config.erl
+++ b/src/rcl_prv_config.erl
@@ -46,6 +46,8 @@ init(State) ->
-spec do(rcl_state:t()) ->{ok, rcl_state:t()} | relcool:error().
do(State) ->
case rcl_state:config_file(State) of
+ [] ->
+ search_for_dominating_config(State);
undefined ->
search_for_dominating_config(State);
ConfigFile when erlang:is_list(ConfigFile) ->