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