Compare commits
No commits in common. "2754c14fa6e33bd5ef3a7173cec40dbe79de1746" and "d0d983699049b7b339c09fa9e8d9db728c641fe1" have entirely different histories.
2754c14fa6
...
d0d9836990
@ -158,14 +158,9 @@ func (p *processor) processDir(inputDir string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filePath := filepath.Join(inputDir, item.Name())
|
filePath := filepath.Join(inputDir, item.Name())
|
||||||
allDec := common.GetDecoder(filePath, p.skipNoopDecoder)
|
err := p.processFile(filePath)
|
||||||
if len(allDec) == 0 {
|
if err != nil {
|
||||||
logger.Info("skipping while no suitable decoder", zap.String("source", item.Name()))
|
logger.Error("conversion failed", zap.String("source", filePath), zap.Error(err))
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := p.process(filePath, allDec); err != nil {
|
|
||||||
logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user