summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-09-07 14:28:08 +0000
committerBadlop <badlop@process-one.net>2009-09-07 14:28:08 +0000
commitd678a21f21f78c1a0828767e70cfd8d1047a765b (patch)
treedf71db16d834659da89564dcb3c1030b7841cbbf /src
parentfix minor timestamp shift between item creation and modification (diff)
Change some error messages.
SVN Revision: 2587
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_s2s_out.erl6
-rw-r--r--src/web/ejabberd_http_bind.erl2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl
index 0366ec30..455a6416 100644
--- a/src/ejabberd_s2s_out.erl
+++ b/src/ejabberd_s2s_out.erl
@@ -1052,8 +1052,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;
diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl
index 336d4171..a80c463a 100644
--- a/src/web/ejabberd_http_bind.erl
+++ b/src/web/ejabberd_http_bind.erl
@@ -177,7 +177,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 ++ "'/>"};