Skip to content

Commit

Permalink
feat: info log for skipping empty source files
Browse files Browse the repository at this point in the history
  • Loading branch information
xNaCly committed May 19, 2023
1 parent a000381 commit d49643a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fleck.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func main() {
} else if s.IsDir() {
logger.LError(fmt.Sprintf("'%s' is a directory", s.Name()))
} else if s.Size() == 0 {
logger.LInfo(fmt.Sprintf("detected empty source file (%s), skipping", s.Name()))
// INFO: this skips the given file if it is empty
return
}
Expand Down

0 comments on commit d49643a

Please sign in to comment.