mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-27 15:46:59 +00:00
fix: don't force exit when processFile fails.
This commit is contained in:
1 parent
2abdd47c9c
commit
2afc232eb1
1 file changed
+1
-1
+1
-1
@@ -247,7 +247,7 @@ func (p *processor) processDir(inputDir string) error {
|
|||||||
func (p *processor) processFile(filePath string) error {
|
func (p *processor) processFile(filePath string) error {
|
||||||
allDec := common.GetDecoder(filePath, p.skipNoopDecoder)
|
allDec := common.GetDecoder(filePath, p.skipNoopDecoder)
|
||||||
if len(allDec) == 0 {
|
if len(allDec) == 0 {
|
||||||
logger.Fatal("skipping while no suitable decoder")
|
return errors.New("skipping while no suitable decoder")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := p.process(filePath, allDec); err != nil {
|
if err := p.process(filePath, allDec); err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user