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:
parent
7a8c0331c1
commit
df5291e4bd
1 changed files with 6 additions and 1 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue