25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-19 15:32:08 +02:00

Print message when starting ejabberd application fails

This commit is contained in:
Paweł Chmielowski 2024-07-05 09:57:07 +02:00
parent 4192190a96
commit 7c63cd1000

View File

@ -53,7 +53,10 @@
-include("logger.hrl").
start() ->
application:ensure_all_started(ejabberd).
case application:ensure_all_started(ejabberd) of
{error, Err} -> io:format("Failed to start ejabberd application: ~p", [Err]);
Ok -> Ok
end.
stop() ->
application:stop(ejabberd).