From 1db9642e4c3fbc30b5ccbaec8121bd264dc24310 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 3 Mar 2009 19:48:20 +0000 Subject: [PATCH] Merge 1916 from trunk. * src/ejabberd_listener.erl: Fix report message of 'undef' error SVN Revision: 1955 --- ChangeLog | 2 ++ src/ejabberd_listener.erl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7ab310ee8..936477697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2009-03-03 Badlop + * src/ejabberd_listener.erl: Fix report message of 'undef' error + * src/ejabberd_listener.erl: Fix a minor compilation warning and add EDoc comment diff --git a/src/ejabberd_listener.erl b/src/ejabberd_listener.erl index 3c3221257..adffe6680 100644 --- a/src/ejabberd_listener.erl +++ b/src/ejabberd_listener.erl @@ -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} ->