25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Change some error messages.

SVN Revision: 2588
This commit is contained in:
Badlop 2009-09-07 14:31:34 +00:00
parent 75dbcd5c68
commit 04e86829e3
2 changed files with 5 additions and 3 deletions

View File

@ -1005,8 +1005,10 @@ srv_lookup(Server, Timeout, Retries) ->
{error, _Reason} -> {error, _Reason} ->
case inet_res:getbyname("_jabber._tcp." ++ Server, srv, Timeout) of case inet_res:getbyname("_jabber._tcp." ++ Server, srv, Timeout) of
{error, timeout} -> {error, timeout} ->
?ERROR_MSG("Couldn't resolve SRV records for ~p via nameservers ~p.", ?ERROR_MSG("The DNS servers~n ~p~ntimed out on request"
[Server, inet_db:res_option(nameserver)]), " for ~p IN SRV."
" You should check your DNS configuration.",
[inet_db:res_option(nameserver), Server]),
srv_lookup(Server, Timeout, Retries - 1); srv_lookup(Server, Timeout, Retries - 1);
R -> R R -> R
end; end;

View File

@ -180,7 +180,7 @@ process_request(Data, IP) ->
{ok, {"", Rid, Attrs, Payload}} -> {ok, {"", Rid, Attrs, Payload}} ->
case xml:get_attr_s("to",Attrs) of case xml:get_attr_s("to",Attrs) of
"" -> "" ->
?ERROR_MSG("Session not created (Improper addressing)", []), ?INFO_MSG("Session not created (Improper addressing).~nAttributes: ~p", [Attrs]),
{200, ?HEADER, "<body type='terminate' " {200, ?HEADER, "<body type='terminate' "
"condition='improper-addressing' " "condition='improper-addressing' "
"xmlns='" ++ ?NS_HTTP_BIND ++ "'/>"}; "xmlns='" ++ ?NS_HTTP_BIND ++ "'/>"};