Skip to content

Commit

Permalink
Handle case when elixir support is enabled but not available
Browse files Browse the repository at this point in the history
This happens when:
./configure --with-rebar=rebar3 --enable-elixir
make
rebar3 ct
  • Loading branch information
badlop committed Jul 19, 2024
1 parent 4e35515 commit bc7c8e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ejabberd_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ file_queue_init() ->
-ifdef(ELIXIR_ENABLED).
is_using_elixir_config() ->
Config = ejabberd_config:path(),
'Elixir.Ejabberd.ConfigUtil':is_elixir_config(Config).
try 'Elixir.Ejabberd.ConfigUtil':is_elixir_config(Config) of
B when is_boolean(B) -> B
catch
_:_ -> false
end.

setup_if_elixir_conf_used() ->
case is_using_elixir_config() of
Expand Down

0 comments on commit bc7c8e3

Please sign in to comment.