Skip to content

Commit

Permalink
print error log for else situation
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdd committed Jul 20, 2021
1 parent e752e09 commit 2ae31e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions processor/file.go
Expand Up @@ -69,6 +69,8 @@ func NewDirectoryWalker(output chan<- *FileJob) *DirectoryWalker {
regexpResult, err := regexp.Compile(exclude)
if err == nil {
directoryWalker.excludes = append(directoryWalker.excludes, regexpResult)
} else {
printError(err.Error())
}
}

Expand Down

0 comments on commit 2ae31e6

Please sign in to comment.