If you paste the Erlang Home and it happens to have a trailing newline, it seems the package will just go with it, resulting in:
CLOSED 126, Last Error: /usr/local/bin/elixir: line 100: /usr/local/Cellar/erlang/18.0.3/bin
/erl: No such file or directory
/usr/local/bin/elixir: line 100: exec: /usr/local/Cellar/erlang/18.0.3/bin
/erl: cannot execute: No such file or directory
If you paste the Erlang Home and it happens to have a trailing newline, it seems the package will just go with it, resulting in: