@ -236,13 +236,7 @@ func (p *processor) processDir(inputDir string) error {
|
||||
}
|
||||
|
||||
filePath := filepath.Join(inputDir, item.Name())
|
||||
allDec := common.GetDecoder(filePath, p.skipNoopDecoder)
|
||||
if len(allDec) == 0 {
|
||||
logger.Info("skipping while no suitable decoder", zap.String("source", item.Name()))
|
||||
continue
|
||||
}
|
||||
|
||||
if err := p.process(filePath, allDec); err != nil {
|
||||
if err := p.processFile(filePath); err != nil {
|
||||
logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user