Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

handle empty source files

  • Loading branch information...
commit b6d7bbb29e67dd91fbdbf4791aaf758c484853bc 1 parent 49d7cbc
Felix Lange authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  src/tetrapak_task_erlc.erl
2  src/tetrapak_task_erlc.erl
@@ -178,6 +178,8 @@ erlang_source_files(Path) ->
178 178
179 179 scan_source(Path) ->
180 180 case epp_dodger:quick_parse_file(Path, []) of
  181 + {ok, []} ->
  182 + #erl{mtime = tpk_file:mtime(Path), file = Path, module = filename:basename(Path, ".erl")};
181 183 {ok, Forms} ->
182 184 Rec = #erl{mtime = tpk_file:mtime(Path), file = Path, module = filename:basename(Path, ".erl")},
183 185 lists:foldl(fun (F, Acc) -> do_form(Path, F, Acc) end, Rec, tl(Forms))

0 comments on commit b6d7bbb

Please sign in to comment.
Something went wrong with that request. Please try again.