25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-19 15:32:08 +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(_, []) ->
ok;
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.
install(Module, Spec, SrcDir, LibDir, Config) ->