mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Change some error messages.
SVN Revision: 2588
This commit is contained in:
parent
75dbcd5c68
commit
04e86829e3
@ -1005,8 +1005,10 @@ srv_lookup(Server, Timeout, Retries) ->
|
||||
{error, _Reason} ->
|
||||
case inet_res:getbyname("_jabber._tcp." ++ Server, srv, Timeout) of
|
||||
{error, timeout} ->
|
||||
?ERROR_MSG("Couldn't resolve SRV records for ~p via nameservers ~p.",
|
||||
[Server, inet_db:res_option(nameserver)]),
|
||||
?ERROR_MSG("The DNS servers~n ~p~ntimed out on request"
|
||||
" for ~p IN SRV."
|
||||
" You should check your DNS configuration.",
|
||||
[inet_db:res_option(nameserver), Server]),
|
||||
srv_lookup(Server, Timeout, Retries - 1);
|
||||
R -> R
|
||||
end;
|
||||
|
@ -180,7 +180,7 @@ process_request(Data, IP) ->
|
||||
{ok, {"", Rid, Attrs, Payload}} ->
|
||||
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' "
|
||||
"condition='improper-addressing' "
|
||||
"xmlns='" ++ ?NS_HTTP_BIND ++ "'/>"};
|
||||
|
Loading…
Reference in New Issue
Block a user