mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Merge 1916 from trunk.
* src/ejabberd_listener.erl: Fix report message of 'undef' error SVN Revision: 1955
This commit is contained in:
parent
4df4527e77
commit
1db9642e4c
@ -1,5 +1,7 @@
|
||||
2009-03-03 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/ejabberd_listener.erl: Fix report message of 'undef' error
|
||||
|
||||
* src/ejabberd_listener.erl: Fix a minor compilation warning and
|
||||
add EDoc comment
|
||||
|
||||
|
@ -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} ->
|
||||
|
Loading…
Reference in New Issue
Block a user