mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Provide explanation in error message when module is already started for another vhost
SVN Revision: 2236
This commit is contained in:
parent
e14c3f4699
commit
1626ede210
@ -3,7 +3,7 @@
|
|||||||
%%% Author : Stefan Strigler <steve@zeank.in-berlin.de>
|
%%% Author : Stefan Strigler <steve@zeank.in-berlin.de>
|
||||||
%%% Purpose : Implementation of XMPP over BOSH (XEP-0206)
|
%%% Purpose : Implementation of XMPP over BOSH (XEP-0206)
|
||||||
%%% Created : Tue Feb 20 13:15:52 CET 2007
|
%%% Created : Tue Feb 20 13:15:52 CET 2007
|
||||||
%%% Id : $Id: mod_http_bind.erl 440 2007-12-06 22:36:21Z badlop $
|
%%% Id : $Id: mod_http_bind.erl 514 2008-03-12 21:54:18Z badlop $
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
@ -74,7 +74,7 @@ process(_Path, _Request) ->
|
|||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
%%% BEHAVIOUR CALLBACKS
|
%%% BEHAVIOUR CALLBACKS
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
start(_Host, _Opts) ->
|
start(Host, _Opts) ->
|
||||||
HTTPBindSupervisor =
|
HTTPBindSupervisor =
|
||||||
{ejabberd_http_bind_sup,
|
{ejabberd_http_bind_sup,
|
||||||
{ejabberd_tmp_sup, start_link,
|
{ejabberd_tmp_sup, start_link,
|
||||||
@ -88,6 +88,11 @@ start(_Host, _Opts) ->
|
|||||||
ok;
|
ok;
|
||||||
{ok, _Pid, _Info} ->
|
{ok, _Pid, _Info} ->
|
||||||
ok;
|
ok;
|
||||||
|
{error, {already_started, _PidOther}} ->
|
||||||
|
ErrorText = "mod_http_bind is already started, "
|
||||||
|
"so it will not be started again for "
|
||||||
|
++ Host,
|
||||||
|
{'EXIT', {start_child_error, ErrorText}};
|
||||||
{error, Error} ->
|
{error, Error} ->
|
||||||
{'EXIT', {start_child_error, Error}}
|
{'EXIT', {start_child_error, Error}}
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user