25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Change some error messages.

SVN Revision: 2587
This commit is contained in:
Badlop 2009-09-07 14:28:08 +00:00
parent 860957d20c
commit d678a21f21
2 changed files with 5 additions and 3 deletions

View File

@ -1052,8 +1052,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

@ -177,7 +177,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 ++ "'/>"};