summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-06-30 22:14:08 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-06-30 22:14:08 +0200
commit49f3cc4108d0dcc70f74ed02edf4d933c6fbfdb0 (patch)
treea82f4c0fd87aea5d0faf5151c25467fd6f23e224 /src
parent0c27fd4f7fab1082fc8485bceaa2dd18e81da109 (diff)
Fix crash introduced in 4414f65 via pull/245
Diffstat (limited to 'src')
-rw-r--r--src/rebar_templater.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 5e1e572..3154b83 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -64,8 +64,8 @@
?CONSOLE("Available templates:\n", []),
_ = [begin
BaseName = filename:basename(F, ".template"),
- {ok, Template} = file:consult(F),
- {_, VarList} = lists:keyfind(variables, 1, Template),
+ TemplateTerms = consult(load_file(Type, F)),
+ {_, VarList} = lists:keyfind(variables, 1, TemplateTerms),
Vars = lists:foldl(fun({V,_}, Acc) ->
[atom_to_list(V) | Acc]
end, [], VarList),