From 73705a3b2ef5e3c2847e157a88e33ba82e80c2b7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 4 Aug 2010 14:03:33 +0200 Subject: [PATCH] Explain better what's the problem with the option clusterid --- src/ejabberd_hosts.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_hosts.erl b/src/ejabberd_hosts.erl index 852649be6..e9d1c3970 100644 --- a/src/ejabberd_hosts.erl +++ b/src/ejabberd_hosts.erl @@ -427,7 +427,10 @@ get_clusterid() -> case ejabberd_config:get_local_option(clusterid) of ID when is_integer(ID) -> ID; + undefined -> + ?ERROR_MSG("Please add to your ejabberd.cfg the line: ~n {clusterid, 1}.", []), + 1; Other -> - ?ERROR_MSG("The option {clusterid, INTEGER}. was configured to: ~p", [Other]), + ?ERROR_MSG("Change your misconfigured {clusterid, ~p} to the value: ~p", [Other, 1]), 1 end.