diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rebar_templater.erl | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index 98fa245..1e015ee 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -66,9 +66,11 @@               BaseName = filename:basename(F, ".template"),               {ok, Template} = file:consult(F),               {_, VarList} = lists:keyfind(variables, 1, Template), -             Vars = lists:foldl(fun({V,_}, Acc) -> [atom_to_list(V)|Acc] end, [], VarList), -             ?CONSOLE("\t* ~s: ~s (~p) (variables: ~p)\n", [BaseName, F, Type,  -                                                            string:join(Vars, ", ")]) +             Vars = lists:foldl(fun({V,_}, Acc) -> +                                        [atom_to_list(V) | Acc] +                                end, [], VarList), +             ?CONSOLE("\t* ~s: ~s (~p) (variables: ~p)\n", +                      [BaseName, F, Type, string:join(Vars, ", ")])           end || {Type, F} <- AvailTemplates],      ok. | 
