From 26851a2e1c59124dea325e9a38cda25da463839a Mon Sep 17 00:00:00 2001 From: Eric B Merritt Date: Tue, 5 Feb 2013 16:49:41 -0800 Subject: fix config issues with undefined config --- src/rcl_prv_config.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rcl_prv_config.erl') 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. -- cgit v1.2.3