diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-30 22:14:08 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-06-30 22:14:08 +0200 |
commit | 49f3cc4108d0dcc70f74ed02edf4d933c6fbfdb0 (patch) | |
tree | a82f4c0fd87aea5d0faf5151c25467fd6f23e224 /src | |
parent | 0c27fd4f7fab1082fc8485bceaa2dd18e81da109 (diff) |
Fix crash introduced in 4414f65 via pull/245
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_templater.erl | 4 |
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), |