Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

handle empty source files

  • Loading branch information...
commit b6d7bbb29e67dd91fbdbf4791aaf758c484853bc 1 parent 49d7cbc
Felix Lange authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/tetrapak_task_erlc.erl
2  src/tetrapak_task_erlc.erl
View
@@ -178,6 +178,8 @@ erlang_source_files(Path) ->
scan_source(Path) ->
case epp_dodger:quick_parse_file(Path, []) of
+ {ok, []} ->
+ #erl{mtime = tpk_file:mtime(Path), file = Path, module = filename:basename(Path, ".erl")};
{ok, Forms} ->
Rec = #erl{mtime = tpk_file:mtime(Path), file = Path, module = filename:basename(Path, ".erl")},
lists:foldl(fun (F, Acc) -> do_form(Path, F, Acc) end, Rec, tl(Forms))
Please sign in to comment.
Something went wrong with that request. Please try again.