summaryrefslogtreecommitdiff
path: root/src/rebar_erlydtl_compiler.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-21 11:32:49 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-21 11:32:49 -0500
commit1854276fb54b93654c0b2a300978f6e97973c857 (patch)
tree95a28ff7715427d17436a29c263482efbbddfa44 /src/rebar_erlydtl_compiler.erl
parent6356112cbbb32b09dd2f94ea856c3cbd32b1c085 (diff)
down to last 2 dialyzer errors
Diffstat (limited to 'src/rebar_erlydtl_compiler.erl')
-rw-r--r--src/rebar_erlydtl_compiler.erl13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl
index 88ee20f..7d90ada 100644
--- a/src/rebar_erlydtl_compiler.erl
+++ b/src/rebar_erlydtl_compiler.erl
@@ -230,24 +230,15 @@ do_compile(Config, Source, Target, DtlOpts) ->
Opts = lists:ukeymerge(1, DtlOpts, Sorted),
?INFO("Compiling \"~s\" -> \"~s\" with options:~n ~s~n",
[Source, Target, io_lib:format("~p", [Opts])]),
- case erlydtl:compile(Source,
- module_name(Target),
+ case erlydtl:compile(ec_cnv:to_binary(Source),
+ ec_cnv:to_atom(module_name(Target)),
Opts) of
- ok ->
- ok;
{ok, _Mod} ->
ok;
{ok, _Mod, Ws} ->
rebar_base_compiler:ok_tuple(Config, Source, Ws);
- {ok, _Mod, _Bin, Ws} ->
- rebar_base_compiler:ok_tuple(Config, Source, Ws);
error ->
rebar_base_compiler:error_tuple(Config, Source, [], [], Opts);
- {error, {_File, _Msgs} = Error} ->
- rebar_base_compiler:error_tuple(Config, Source, [Error], [], Opts);
- {error, Msg} ->
- Es = [{Source, [{erlydtl_parser, Msg}]}],
- rebar_base_compiler:error_tuple(Config, Source, Es, [], Opts);
{error, Es, Ws} ->
rebar_base_compiler:error_tuple(Config, Source, Es, Ws, Opts)
end.