Skip to content

Commit

Permalink
Fixing Node raise
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos committed Jul 22, 2022
1 parent 995a2d4 commit ee8417c
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions lib/compilers/node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,29 @@ if Code.ensure_loaded?(:exec) do
end
end
else
raise("""
In order to use the Node compiler you must also update your mix.exs file like so:
defmodule MjmlEEx.Compilers.Node do
@moduledoc false

def application do
[
extra_applications: [..., :erlexec]
]
end
@behaviour MjmlEEx.Compiler

defp deps do
[
...
{:erlexec, "~> 2.0"}
]
@impl true
def compile(mjml_template) do
raise("""
In order to use the Node compiler you must also update your mix.exs file like so:
def application do
[
extra_applications: [..., :erlexec]
]
end
defp deps do
[
...
{:erlexec, "~> 2.0"}
]
end
""")
end
end
""")
end

0 comments on commit ee8417c

Please sign in to comment.