diff --git a/mix.exs b/mix.exs index 01338ba..c1c0a34 100644 --- a/mix.exs +++ b/mix.exs @@ -82,11 +82,12 @@ defmodule Mix.Tasks.Compile.Asn1 do Erlang.compile(manifest(), mappings, :asn1, :erl, force, fn input, output -> + File.mkdir(Path.dirname(output)) options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))] case :asn1ct.compile(Erlang.to_erl_file(input), options) do - :ok -> :ok - error -> error + :ok -> {:ok, [], []} + :error -> {:error, [], []} end end) end