1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 09:49:18 +02:00

ext_mod: Improve error result when problem compiling elixir file

This commit is contained in:
Badlop 2024-07-11 11:19:43 +02:00
parent 7a8c0331c1
commit df5291e4bd

View file

@ -688,7 +688,12 @@ compile_elixir_files(Dest, Files) ->
compile_elixir_files(_, []) -> compile_elixir_files(_, []) ->
ok; ok;
compile_elixir_files(_, Files) -> compile_elixir_files(_, Files) ->
{error, {compilation_failed, Files}}. ErrorString = "Attempted to compile Elixir files, but Elixir support is "
"not available in ejabberd. Try compiling ejabberd using "
"'./configure --enable-elixir' or './configure --with-rebar=mix'",
?ERROR_MSG(ErrorString, []),
io:format("Error: " ++ ErrorString ++ "~n", []),
{error, {elixir_not_available, Files}}.
-endif. -endif.
install(Module, Spec, SrcDir, LibDir, Config) -> install(Module, Spec, SrcDir, LibDir, Config) ->