25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

* src/ejabberd_listener.erl: Fix report message of 'undef' error

SVN Revision: 1916
This commit is contained in:
Badlop 2009-02-24 17:25:40 +00:00
parent 04fde3620d
commit 1650a946f2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-02-24 Badlop <badlop@process-one.net>
* src/ejabberd_listener.erl: Fix report message of 'undef' error
2009-02-23 Christophe Romain <christophe.romain@process-one.net> 2009-02-23 Christophe Romain <christophe.romain@process-one.net>
* src/ejabberd_c2s.erl: Do not call mod_caps:clear_caps, this previous * src/ejabberd_c2s.erl: Do not call mod_caps:clear_caps, this previous

View File

@ -219,11 +219,11 @@ accept(ListenSocket, Module, Opts) ->
start_listener(Port, Module, Opts) -> start_listener(Port, Module, Opts) ->
case start_listener2(Port, Module, Opts) of case start_listener2(Port, Module, Opts) of
{ok, _Pid} = R -> R; {ok, _Pid} = R -> R;
{error, {{'EXIT', {undef, _}}, _} = Error} -> {error, {{'EXIT', {undef, [{M, _F, _A}|_]}}, _} = Error} ->
?ERROR_MSG("Error starting the ejabberd listener: ~p.~n" ?ERROR_MSG("Error starting the ejabberd listener: ~p.~n"
"It could not be loaded or is not an ejabberd listener.~n" "It could not be loaded or is not an ejabberd listener.~n"
"Error: ~p~n", [Module, Error]), "Error: ~p~n", [Module, Error]),
{error, {module_not_available, Module}}; {error, {module_not_available, M}};
{error, {already_started, Pid}} -> {error, {already_started, Pid}} ->
{ok, Pid}; {ok, Pid};
{error, Error} -> {error, Error} ->