Skip to content

Commit

Permalink
ext_mod: Improve error result when problem compiling elixir file
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jul 11, 2024
1 parent 7a8c033 commit df5291e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ext_mod.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit df5291e

Please sign in to comment.