Explain better what's the problem with the option clusterid

This commit is contained in:
Badlop 2010-08-04 14:03:33 +02:00
parent 7510a54f81
commit 73705a3b2e
1 changed files with 4 additions and 1 deletions

View File

@ -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.