summaryrefslogtreecommitdiff
path: root/src/rebar_erlydtl_compiler.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2014-01-11 20:26:10 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-01-11 20:26:10 +0100
commit03e7993402d77d15fed31df74206b00cfdd54f9d (patch)
tree7cd1b036110f2fa8105db035c5f7345fc3fb5b26 /src/rebar_erlydtl_compiler.erl
parentdf42410cf21a37e0c48e741ffa37db9efc576309 (diff)
Fix #205 (erlydtl:compile/3 returns warnings)
Adapt rebar_erlydtl_compiler to handle warnings emitted by erlydtl:compile/3.
Diffstat (limited to 'src/rebar_erlydtl_compiler.erl')
-rw-r--r--src/rebar_erlydtl_compiler.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl
index 6172879..27c378d 100644
--- a/src/rebar_erlydtl_compiler.erl
+++ b/src/rebar_erlydtl_compiler.erl
@@ -210,6 +210,8 @@ do_compile(Config, Source, Target, DtlOpts) ->
Opts) of
ok ->
ok;
+ {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} ->