We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd44f9 commit bd2e41aCopy full SHA for bd2e41a
extractor.go
@@ -79,10 +79,11 @@ func (fe *FastExtractor) Run(path string, after string) chan *GitFile {
79
80
err := json.Unmarshal(cleanedLine, &gitFile)
81
if err != nil {
82
+ // If an error occurs, print a warning and do nothing with the line
83
log.Warnln("Error while parsing", string(line), err)
84
+ } else {
85
+ fe.ChanGitFiles <- &gitFile
86
}
-
- fe.ChanGitFiles <- &gitFile
87
88
89
log.Infof("finished iterating over files, we have collected %d files\n", num)
0 commit comments