aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-08-04 14:03:33 +0200
committerBadlop <badlop@process-one.net>2010-08-04 14:03:33 +0200
commit73705a3b2ef5e3c2847e157a88e33ba82e80c2b7 (patch)
treeaa22590571e5efd45503eff284e8677825413742
parentLoading ASN.1 driver explicitly to avoid races in LDAP (EJAB-1284) (diff)
Explain better what's the problem with the option clusterid
-rw-r--r--src/ejabberd_hosts.erl5
1 files changed, 4 insertions, 1 deletions
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.