aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.