Clarify error message when BOSH query is sent to non-running module
authorBadlop <badlop@process-one.net>
Wed, 12 Jan 2011 20:22:43 +0000 (21:22 +0100)
committerBadlop <badlop@process-one.net>
Wed, 12 Jan 2011 20:22:43 +0000 (21:22 +0100)
src/web/ejabberd_http_bind.erl

index bcc3be054ce65409fa16ea0bcda25049ce6edd89..6244bf12ff1d68261474605214372240b3bdf659 100644 (file)
@@ -1236,6 +1236,11 @@ check_default_xmlns(El) ->
 check_bind_module(XmppDomain) ->
     case gen_mod:is_loaded(XmppDomain, mod_http_bind) of
        true -> ok;
-       false -> ?ERROR_MSG("You are trying to use BOSH (HTTP Bind), but the module mod_http_bind is not started.~n"
-                           "Check your 'modules' section in your ejabberd configuration file.",[])
+       false -> ?ERROR_MSG("You are trying to use BOSH (HTTP Bind) in host ~p,"
+                           " but the module mod_http_bind is not started in"
+                           " that host. Configure your BOSH client to connect"
+                           " to the correct host, or add your desired host to"
+                           " the configuration, or check your 'modules'"
+                           " section in your ejabberd configuration file.",
+                           [XmppDomain])
     end.